2 ms·
Another: You can't rely on items.length() to provide a unique ID. If I start with two items, and delete item 0, then items.length() will return 1. But item 1
by rahimnathwani 11y ago
Another: You can't rely on items.length() to provide a unique ID. If I start with two items, and delete item 0, then items.length() will return 1. But item 1 already exists, so you will add a second item with the same key as the first, which is bad.
- tonyspiro 11y agoThanks rahimnathwani, I've made the edits / fixes you suggested to the article http://tonyspiro.com/building-a-simple-react-application-using-the-flux-pattern/ http://tonyspiro.com/building-a-simple-react-application-usi... and repo https://github.com/tonyspiro/easy-flux-example https://github.com/tonyspiro/easy-flux-example