Add MarkView.destroy #174

Merged
ocavue merged 6 commits from ocavue/markview-destroy into master 2024-11-03 13:49:46 +01:00
ocavue commented 2024-11-01 07:44:37 +01:00 (Migrated from github.com)

This PR implements the destroy() method for mark views, which is required for rendering mark with other UI framework like React. See also https://discuss.prosemirror.net/t/support-destroy-method-in-markview/7855

This PR implements the `destroy()` method for mark views, which is required for rendering mark with other UI framework like React. See also https://discuss.prosemirror.net/t/support-destroy-method-in-markview/7855
marijnh (Migrated from github.com) reviewed 2024-11-01 07:44:37 +01:00
marijnh (Migrated from github.com) reviewed 2024-11-03 10:45:17 +01:00
marijnh (Migrated from github.com) commented 2024-11-03 10:45:17 +01:00

TypeScript, with our build settings, still produces much worse code for a ?.() call than this conditional. Could you rever this and also use an if in MarkView.destroy?

TypeScript, with our build settings, still produces much worse code for a `?.()` call than this conditional. Could you rever this and also use an `if` in `MarkView.destroy`?
ocavue (Migrated from github.com) reviewed 2024-11-03 11:25:13 +01:00
ocavue (Migrated from github.com) commented 2024-11-03 11:25:13 +01:00

Sure. I have reverted it in the latest commit.

Sure. I have reverted it in the latest commit.
marijnh commented 2024-11-03 13:49:51 +01:00 (Migrated from github.com)

Thanks!

Thanks!
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
prosemirror/prosemirror-view!174
No description provided.