Forked to show bug where componentDidUpdate prevProps does not contain value of prevProps but of current props.
Steps to see:
- Build and run the todo app.
- Add a todo.
- Edit the todo that you added.
- Check the console where value from componentDidUpdate is logged. prevProps value is the latest prop and not prevProps.
Note: This bug does not exist in the original FluxTodo-MVC app by Bill Fisher. Note2: I came across this bug while building another flux react application and then repro'd it here using the todo-mvc app.
============================================================================== This is port of official TodoMVC Flux example from Facebook: http://github.com/facebook/flux/blob/master/examples/flux-todomvc - files structure and most of variable names are the same.
Flux Dispatcher and EventEmitter (used in Store) are replaced with Kefir.js FRP library: http://pozadi.github.io/kefir/
JavaScript code is written in ES6 with modern React 0.13 class syntax, transpiled by Babel
npm install
webpack