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: Addressed component preservation failure during streaming. #36

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

SolomonLeon
Copy link

Problem

In the original implementation of elementId, the elementId of parent elements changes when new inline blocks are formed. This leads to failures in preserving React component state.

Solution

Replace elementId with a string that is related to the block's depth. This makes keys at different depths independent, resulting in better performance and enabling a more flexible custom renderer.

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.

None yet

1 participant