react-planner icon indicating copy to clipboard operation
react-planner copied to clipboard

refresh will clean the state

Open GEEKTEDDY opened this issue 6 years ago • 4 comments

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.

GEEKTEDDY avatar Dec 24 '19 09:12 GEEKTEDDY

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.

GEEKTEDDY avatar Dec 25 '19 08:12 GEEKTEDDY

flag

flag means?

Laksmaprabhu avatar Dec 27 '19 10:12 Laksmaprabhu

flag

flag means?

a bool variable that determines whether to update toolBar component or not

GEEKTEDDY avatar Jan 05 '20 08:01 GEEKTEDDY

Possible duplicate of #188

Magnuti avatar Nov 05 '21 12:11 Magnuti