3 ms·
Yea, for sure it should be possible to do it with local storage but the real cool thing would be to be able to keep state in js between live redirects. Like you
by victorbjorklund 4y ago
Yea, for sure it should be possible to do it with local storage but the real cool thing would be to be able to keep state in js between live redirects. Like you said it should be possible if using live redirect. Would love that. Good luck! Hope to be able to use your library in the future.
- POiNTx 4y agoHey, I got a simple example of using stores where you live redirect between 2 liveviews but the store information is kept. Was able to do it with saving the store to the window: https://github.com/woutdp/live_svelte/tree/master/examples/store https://github.com/woutdp/live_svelte/tree/master/examples/s... What could be cool if I can somehow map the reactive liveview state directly to a store... not sure how to do this yet but hope I can figure it out