message: feat: cache url state
diff: @@ -32,10 +32,13 @@ export default <S extends UrlState = UrlState>(initialState?: S | (() => S), opt
  return parse(location.search, parseConfig);
  }, [location.search]);
  - const targetQuery = {
  + const targetQuery: state = useMemo(
  + () => ({
  ...initialStateRef.current,
  ...queryFromUrl,
  - } as state;
  + }),
  + [queryFromUrl],
  + );
  const setState = (s: React.SetStateAction<state>) => {
  const newQuery = typeof s === 'function' ? (s as Function)(targetQuery) : s;
  