I have broken and restarted my redux about three times now. This last time I started looking into redux tool kit.
Tool kit is everythink redux is without its problems.
Tool kit work by wrapping the statandard pieces of redux in other funtions with automaticallu fillout need things.
My main problem with redux is that for a single piece of redux I need to create an unnecisery web of data. React-boiler-plate how information on uninstalling redux and it extention. I haven’y looked into this because I don’t want having to reset my conatiners again to set me back.
The main reason I like tool kit is the funtion such as splices will automatically fill out what is needed for a full action, reduxer, store root.
What I mena by this is I use to have to a constation for action, an action to hand cases and payloads and a reducer to commicate with my store. I would then also have to add dispatcher and map my comands to props. This lead to an extremely clutter and hard to navigate file and code struture.
Where for example with tool kit splice the action I have been admititedly over using, lets me declar most of the thing that would be need for an action chain, inside of the funtion, this includes cases and recucer.
The other part I like about tool kit is that it remove a lot the the trerible js syntx. I have a dislike for it not because of the langagues it’s self just that with reducer I have always personally felt that it was visable that this was not the langages oriogional purpose.
I have been carefully remove all of my unneed files to try and simlplie down my redux. I feel off about it because it honestly just because I’m struggling to keep up as each container has about 4 pieces of middleware which Ijust don’t understand.
with redux tool kit the two middleware I like are included, immer which allows immutible states to be correctly edited though the proper means and another middleware which I forget the name off nut is design for managing states with a browser pluggin.
The one thing I need to keep in mind is unlike standard redux which provides the user with many different options for doing simple task redux has a stronger tendance to enforce it rules. I probably will not notice as a lot of my middleware seems to already enforce ‘best practices’;