-
Notifications
You must be signed in to change notification settings - Fork 70
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
Update MIGRATION_GUIDE_08.md #1393
base: main
Are you sure you want to change the base?
Conversation
replace factoryReset and destroy with erase and delete
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you
- **`factoryReset()`**: This factory resets the device. If started it is stopped and restarted afterward. | ||
- **`destroy()`**: This destroys the node, taking it offline and removing it from the environment workers- | ||
- **`erase()`**: This factory resets the device. If started it is stopped and restarted afterward. | ||
- **`delete()`**: This destroys the node, taking it offline and removing it from the environment workers- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this not be "cancel"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is a third method called cancel(). it's already in the docs.
cancel leaves the structure intact according to the docs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh ok I got confused.
delete is "Erase all persisted data and destroy the node." ... so it does erase() and then close()
replace factoryReset and destroy with erase and delete