The only uses of "currying" I can think of are writing middleware, which is a very rare use case, and the connect API, which has basically been replaced by useSelector.
Looking at your linked lib, you show this example:
The only immediate difference I see is that RTK's action creators and reducers are still standalone functions, rather than being attached to a store instance.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
What specific concerns do you have?
The only uses of "currying" I can think of are writing middleware, which is a very rare use case, and the
connectAPI, which has basically been replaced byuseSelector.Looking at your linked lib, you show this example:
RTK's
createSliceis effectively identical to that:and RTK is written in TS and designed for a great TS usage experience:
redux.js.org/tutorials/typescript-...
The only immediate difference I see is that RTK's action creators and reducers are still standalone functions, rather than being attached to a
storeinstance.