react-planner
react-planner copied to clipboard
refresh will clean the state
Try to add something on canvas, and then refresh the page, it turns out that the item added is still on canvas but I can't get the item data when I click the save button.
One solution: add a flag for compoment 'toolBar', reset the flag in compomentWillMount when browser refresh, and put flag into the return statement inside shouldComponentUpdate.
flag
flag means?
flag
flag means?
a bool variable that determines whether to update toolBar component or not
Possible duplicate of #188