Switch editors for the same <Plate /> component #3338
yf-yang
started this conversation in
Feature Requests
Replies: 2 comments 3 replies
-
could you try add a key property? |
Beta Was this translation helpful? Give feedback.
3 replies
-
Quite interesting, I find Plate does pass a key prop to Slate. Not sure why it does not work. plate/packages/core/src/client/hooks/useSlateProps.ts Lines 38 to 46 in 65cfe84 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I try to create a multi-tab application. It's something like
Unfortunately, when I switch editor, the content does not change.
To make it work, I try to patch the code
plate/packages/core/src/client/components/Plate.tsx
Lines 103 to 114 in a59cdc0
by adding
editorProp
as a dependency, however, the rendered result of PlateContent remains unchanged. Therefore, I guess there are much more memorized state than I expect.My question is:
Does Plate support the use case mentioned above?
If I am willing to draft a PR, what's the components that should be taken care of?
Beta Was this translation helpful? Give feedback.
All reactions