Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: