ConsoleTVs / sswr

🔥 Svelte stale while revalidate (SWR) data fetching strategy
MIT License
234 stars 11 forks source link

revalidateOnMount missing? #30

Closed khromov closed 2 years ago

khromov commented 2 years ago

👋 I saw a reference to the revalidateOnMount configuration option in the README but I can't seem to find it in the code. Is it a feature that is planned for a future release?

It would be useful for me to set revalidateOnMount: false since I will be setting initialData from SvelteKit through SSR and don't want it to immediately refresh on the client.

khromov commented 2 years ago

I see that the function has been renamed to revalidateOnStart, see separate PR for small README fix.

ConsoleTVs commented 2 years ago

Thank you, you are correct