I have an object of Items in Redux store, each Item has its own items Array. So, Item
and subItem
have functions: create
, delete
its self. And in reducer of the store i have functions: createItem
, deleteItem
, createItemOfItem
, deleteItemOfItem
.. can i split this logic to slicers
or another method to do it? Can i do this in Vanilla React with useReducer
? Tried all my best with useReducer and Redux toolkit