4 ms·
There's nothing stopping you to use Redux Toolkit and RTK Query in Svelte. It may not be "clean" from an OOP perspective, but it is trivial to test, mostly with
by bayesian_horse 3y ago
There's nothing stopping you to use Redux Toolkit and RTK Query in Svelte. It may not be "clean" from an OOP perspective, but it is trivial to test, mostly without mocking, it is easy to reason with, and even less code and complexity than what this blog tries to push.
When developers talk about a "clean way" to do things, I immediately think of overconfidence. Can't help it.
- jmnicolas 3y agoWhen developers talk about a "clean way" I immediately think of an over-engineered and over-abstracted piece of crap that will be so complicated to understand that the next team will rewrite from scratch. YMMV.
- bayesian_horse 3y agoI wanted to be a little more diplomatic.
- acemarke 3y agoYep, we actually have an RTK Query + Svelte sandbox in our examples page! https://redux-toolkit.js.org/rtk-query/usage/examples#svelte https://redux-toolkit.js.org/rtk-query/usage/examples#svelte We've also seen people use RTKQ with Vue and NgRx as well, like this: - https://github.com/SaulMoro/ngrx-rtk-query https://github.com/SaulMoro/ngrx-rtk-query