3 ms·
THe problem I've found with this approach is that it gets very messy very fast. It's hard to track down bugs to their source. One of my favorite aspects of Re
by wry_discontent 9y ago
THe problem I've found with this approach is that it gets very messy very fast. It's hard to track down bugs to their source.
One of my favorite aspects of Redux is how easy it is to follow the flow of data. Whatever you do, you start at a dom element, look at what action creator it calls, and check out the changes in the reducer.
- ngsayjoe 9y agoYes, agree it is a bit messy now but still manageable as i wanna delay using Redux / Mobx as long as possible.
- wry_discontent 9y agoI've also delayed introducing Redux to a project before, and it was a mistake. After a few weeks of convincing, I got time to add Redux to a project, and it's immensely difficult because of how much needs to be restructured. It's better to just start with it if you're going to end up creating something large enough or complicated enough to warrant it.
- acemarke 9y agoIn theory, if you've been following a "container component"-type approach, you _should_ be able to start replacing those hand-written containers with Redux-connected ones. What kinds of issues and restructuring problems did you experience?