In the particuliar case of Single Page Application (SPAs), different routes/pages as usually rendered as components. One could be tempted to use writables stores to keep a global application state. Bear in mind that in practice, if users reload from their browser, store variables will be erased.
In the particular case of Single Page Application (SPAs), different routes/pages are usually rendered as components. One could be tempted to use writable stores to keep global application state. Bear in mind, that in practice, reloading the page will reset the stores.