4 ms·
You can often use route params or location hash for communicating state sideways if shared context is overkill, with the benefit of making the state bookmarkabl
by WiseWeasel 4y ago
You can often use route params or location hash for communicating state sideways if shared context is overkill, with the benefit of making the state bookmarkable or accessible in the history.
- CharlieDigital 4y agoThat's only sustainable for small pieces of state or some mechanism to exchange that small piece of state for a more complete piece of state.
- PaulHoule 4y agoRight, the problem with React is it has no global answer for application state, instead it provides a toolbox with which it is possible to set up your own state handling but frequently you face structural instability where a small change in your app’s functionality require large architectural changes.
- rektide 4y ago> or some mechanism to exchange that small piece of state for a more complete piece of state using links to refer to information is, like, not a totally foreign concept to the web (and certainly granted: in some cases this issue of signaling via url can get quite ugly; but often it's not).