paoloricciuti / sveltekit-search-params

The easiest way to read and WRITE from query parameters in sveltekit.
https://sveltekit-search-params.netlify.app
MIT License
478 stars 13 forks source link

Question: How do you achieve goto with replaceState #43

Open ravsom opened 10 months ago

ravsom commented 10 months ago

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

paoloricciuti commented 8 months ago

You can do this by setting the parameter pushHistory to false