You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have just finished reading redux document basics part. There is potentially a bug in basic secion.
If you add three todos, and switch to active filter, click first (which will disappear from list), and you are not able to 'complete' the first todo in those two left.
I think the problem is that in this example code, App only receive todos from 'current selected', and the 'map' function will generate index form this subset of state.todos(the singleton). However, 'COMPLETE_TODO' update index counting in that singleton todos. And there is no way those index matches (other than the case 'SHOW_ALL', as those two lists are equal).
The text was updated successfully, but these errors were encountered:
I have just finished reading redux document basics part. There is potentially a bug in basic secion.
If you add three todos, and switch to active filter, click first (which will disappear from list), and you are not able to 'complete' the first todo in those two left.
I think the problem is that in this example code, App only receive todos from 'current selected', and the 'map' function will generate index form this subset of state.todos(the singleton). However, 'COMPLETE_TODO' update index counting in that singleton todos. And there is no way those index matches (other than the case 'SHOW_ALL', as those two lists are equal).
The text was updated successfully, but these errors were encountered: