-
Notifications
You must be signed in to change notification settings - Fork 19
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
Undo / Redo #69
Comments
raquetelio
added a commit
that referenced
this issue
Aug 2, 2024
raquetelio
added a commit
that referenced
this issue
Aug 3, 2024
raquetelio
added a commit
that referenced
this issue
Aug 5, 2024
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cannot be implemented til we don't have global context
We can follow same approach as in Mongo Modeler and reuse undo/redo helpers
More info about MongoModeler, you can take this files from the following path:
https://github.com/Lemoncode/mongo-modeler/tree/vnext/src/common/undo-redo
About how it works:
addSnapshot
.Undo
.Usage in Mongo Modeler:
https://github.com/Lemoncode/mongo-modeler/blob/vnext/src/core/providers/canvas-schema/canvas-schema.provider.tsx
In order to avoid having to call
addSnapshot
on very operation, we have implemented another hook:useStateWithInterceptor
https://github.com/Lemoncode/mongo-modeler/blob/vnext/src/core/providers/canvas-schema/canvas-schema.hook.tsx
This allows use to implement something like:
We can have a session to get started with this task
The text was updated successfully, but these errors were encountered: