Post
For shared URLs, we The URLs encode the settings and then read them in Sveltekit's load function for the page, doing some validity checks, which are passed in on the data prop. We assume if you visit via a shared URL, we'll overwrite Local Storage state. Example: phonicsandstuff.com/sound-letter...
This is my cobbled together solution to let users share stuff, while maintaining their local device settings. It feels a bit janky, so would love suggestions to improve it or more efficient ways to implement.
0 reposts0 likes
No replies yet.