3 ms·
Yeah, he didn't do the best job of explaining why in that example. Using a global store makes sense when your todo list evolves and the component storing the d
by mfrye0 7y ago
Yeah, he didn't do the best job of explaining why in that example.
Using a global store makes sense when your todo list evolves and the component storing the data is no longer mounted / exists. Examples could be:
- Full page individual todo edit
- Separate component / page that uses the same data
- Some background logic that does X based on the todo data