|
|
|
|
|
by jmogly
384 days ago
|
|
Yes this is the way to do it, global-ish state files with getters and setters. I’ll have a .svelte.ts file (or a few of them) with a typed state object, maybe a function for refreshing it or syncing it with a backend api, import the state all over the place. Might be an anti pattern but it works really well. |
|