Ryan @ryan.phonicsandstuff.com · Nov 29

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...

1 likes 2 replies

?

Replies

Ryan · Nov 29

Argh, typos. I do wish Bluesky had an edit option. I meant... For shared URLs, we encode the settings and then read them in Sveltekit's load function for the page

Ryan · Nov 29

When we mount the page, we check if we received data from load. If we didn't, then we check Local Storage (again verifying data), if nothing is there, we initialize it and put in a default. We use a store for each page's menus, and so far we aren't near the limit of local storage, but we'll see.