3 ms·
At the moment there is no external library for state management in Svelte. There is however Svelte context api and stores but I doubt you can make complex apps
by topnde 4y ago
At the moment there is no external library for state management in Svelte.
There is however Svelte context api and stores but I doubt you can make complex apps with that alone same as is very hard to do it with React context api.
- SebastianKra 4y agoJudging from the documentation of custom stores, it would be trivial to integrate Redux https://svelte.dev/tutorial/custom-stores https://svelte.dev/tutorial/custom-stores In fact, their API is so similar to Redux and RXJS that I think you might not even need to write any glue-code. https://redux.js.org/api/store/#subscribelistener https://redux.js.org/api/store/#subscribelistener https://rxjs.dev/guide/observable#subscribing-to-observables https://rxjs.dev/guide/observable#subscribing-to-observables