easy-peasy
easy-peasy copied to clipboard
Discussion Issue - Can we leverage RTK Query in Easy Peasy
The Redux team released Redux Toolkit in order to make it easier to build out applications using Redux. And while I do like Easy Peasy much better, Easy Peasy's services functionality is relatively simple (compared to things like React Query, etc) To be fair this has been an issue for all redux-like stores.
Recently the RTK team has released an early version of RTK Query. Which promises to provide a similar experience as React Query for Redux.
Will it be possible to leverage this in our Easy Peasy injections? I think it'd be really valuable to have that possibility.
If not, is there anything we can do to improve the sophistication of API services in the injections?
I'm unsure on this tbh. My gut feel is to avoid something like this in Easy Peasy as it doesn't fit with the intentions of the library. I do use Easy Peasy alongside React Query quite often now btw. Utilising Easy Peasy for actual state, and React Query for server data sync. I find it's a great strategy that helps to keep your stores simple.
If you ever experiment with this do let us know how you got on with it. 😁