redux-toolkit icon indicating copy to clipboard operation
redux-toolkit copied to clipboard

can it possible to optimise more boiler plate as like easy-peasy do?

Open rajscet opened this issue 3 years ago • 4 comments

I have used https://easy-peasy.vercel.app/ lib so far with no issues. can this library optimise usage as https://easy-peasy.vercel.app/ do?

As with Easy-peasy too much code is reduced compared to the redux toolkit.

rajscet avatar Aug 30 '22 14:08 rajscet

Without any example of what you personally perceive as boilerplate, that is going to be difficult.

All I can say you at this point is that RTK is deliberately not hiding certain concepts as hiding them strongly couples things and makes things like testing a lot harder.

phryneas avatar Aug 30 '22 14:08 phryneas

I mean this one. https://stackoverflow.com/questions/61944375/easy-peasy-vs-react-redux

yes I understand testing could be difficult

rajscet avatar Aug 30 '22 14:08 rajscet

Can you show some specific code examples (preferably a few dozen lines) showing how to do the same thing in RTK vs Easy-Peasy, so we can understand what kind of code you are describing as "boilerplate"?

That linked SO answer just talks about using Immer for shorter immutable updates, and RTK already uses Immer inside. So, I don't know what other parts of RTK you feel take too much code.

markerikson avatar Aug 30 '22 15:08 markerikson

I will get back as soon as possible

rajscet avatar Sep 08 '22 06:09 rajscet

Closing due to lack of response.

markerikson avatar Jan 28 '23 19:01 markerikson