I'm finding that if I try to use navigate or even redirect on my initial URL to mask search params, it does not work.
E.g. in https://codesandbox.io/p/devbox/stoic-cerf-qj7jyh
You can see that there is a navigate in a useEffect:
useEffect(() => {
console.log("NAVIGATING INITIAL");
navigate({ to: ".", search: (p) => p, mask: { to: ".", search: {} } });
}, []);
This preserves the search params in the URL, but does not seem to do any masking, which I am trying to use to hide the search params in the URL. Even the devtools is not picking it up any masking.
On subsequent navigations, masking does work.