4 ms·
I found the concept of redux - a single source of truth for the state of your app - compelling. But the implementation cost was horrendous. As a developer I am
by talkingtab 2y ago
I found the concept of redux - a single source of truth for the state of your app - compelling. But the implementation cost was horrendous. As a developer I am constantly aware of the cost benefit of tools, libs, etc. The benefit of redux was very high. It reduced the theoretical complexity of my apps tremendously. But the cost of implementation complexity was even higher. There was too much additional code, boiler plate, and implementation complexity.
Later, I started using one single context wrapping the whole thing. This provided most of the benefit of redux - all the code was in DataProvider.js - at the cost of one file. I found that the organization provided (ha ha)less need to go down the whole immutable path. This was just a practical thing, but it has worked extremely well for me.