easy-peasy icon indicating copy to clipboard operation
easy-peasy copied to clipboard

Discussion Issue - Can we leverage RTK Query in Easy Peasy

Open LuisOsta opened this issue 4 years ago • 2 comments

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.

LuisOsta avatar Mar 09 '21 20:03 LuisOsta

If not, is there anything we can do to improve the sophistication of API services in the injections?

LuisOsta avatar Mar 09 '21 20:03 LuisOsta

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. 😁

ctrlplusb avatar Oct 15 '21 07:10 ctrlplusb