sveltekit-search-params icon indicating copy to clipboard operation
sveltekit-search-params copied to clipboard

Question: How do you achieve goto with replaceState

Open ravsom opened this issue 1 year ago • 1 comments

Hi @paoloricciuti , the library is very useful, thanks.

I have a question with regards to replaceState

How do we achieve this

goto(`?tab=${tab}`, { replaceState: true });

with the query params library

ravsom avatar Oct 14 '23 01:10 ravsom

You can do this by setting the parameter pushHistory to false

paoloricciuti avatar Dec 19 '23 08:12 paoloricciuti