Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refresh will clean the state #190

Open
GEEKTEDDY opened this issue Dec 24, 2019 · 4 comments
Open

refresh will clean the state #190

GEEKTEDDY opened this issue Dec 24, 2019 · 4 comments

Comments

@GEEKTEDDY
Copy link

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
Copy link
Author

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.

@Laksmaprabhu
Copy link

flag

flag means?

@GEEKTEDDY
Copy link
Author

flag

flag means?

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

@Magnuti
Copy link

Magnuti commented Nov 5, 2021

Possible duplicate of #188

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants