Skip to content

onChange triggers whenever component mounts #2790

Closed Answered by 12joan
umutbozdag asked this question in Q&A
Discussion options

You must be logged in to vote

Setting Plate's value programatically after the initial render isn't supported, and is probably the reason why onChange is being called. Defer rendering the Plate component until after the data is available. (This is better UX anyway, since users don't want to be seeing an empty editor if the data takes a long time to load.)

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@umutbozdag
Comment options

@12joan
Comment options

@umutbozdag
Comment options

@12joan
Comment options

@umutbozdag
Comment options

Answer selected by zbeyens
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
2 participants
Converted from issue

This discussion was converted from issue #2788 on December 04, 2023 08:25.