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

fix: add a dialog for delete and edit #252

Merged
merged 1 commit into from
Jun 27, 2024
Merged

Conversation

poppingmoon
Copy link
Owner

Changed to use a new widget for delete and edit of the note.

The previous approach was to use the context of NoteSheet for showing indicators or routing.
The approach does not work well for some cases because the operation deletes the note NoteSheet is watching for, and the context is unmounted before pushing to the post page.
With this PR, adding DeleteAndEditDialog, a separate context is used during delete and edit so that the context will not be unmounted.

Changed to use a new widget for delete and edit of the note.

The previous approach was to use the context of `NoteSheet` for showing
indicators or routing.
The approach does not work well for some cases because the operation
deletes the note `NoteSheet` is watching for, and the context is
unmounted before pushing to the post page.
With this PR, adding `DeleteAndEditDialog`, a separate context is used
during delete and edit so that the context will not be unmounted.
@poppingmoon poppingmoon merged commit 7cb44e4 into main Jun 27, 2024
14 checks passed
@poppingmoon poppingmoon deleted the delete-and-edit-dialog branch June 27, 2024 19:47
@poppingmoon poppingmoon mentioned this pull request Jun 27, 2024
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

Successfully merging this pull request may close these issues.

1 participant