-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Editor render issue with data props #2509
Comments
If I will pass expected data directly as prop ( not waiting for response ) -- there is no issues at all. |
@neSpecc could you help, please?
|
why I don't see |
@altumsoftwareds would you test in it |
I am not sure if this is related, I am getting the same "warning" when I put
|
@ls84 where to put |
I am guessing the problem of |
It's because the Paragraph delays saving its data to element. And the save function makes data from its element.
There are two solutions.
|
I am waiting when I will get response with some structure and I need to pass it to Editor.
( I also see such error in console:
Block «paragraph» skipped because saved data is invalid
)so on initial render editor triggers
onChange
method with empty data{time: 1697134792817, blocks: Array(0), version: '2.28.0'}
( I tested it using setTimeout )and it overrides data I save in useState. That's why I see empty editor.
Full code :
The text was updated successfully, but these errors were encountered: