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

feat(richtext-lexical): more powerful custom Block RSCs, improved selection handling #9422

Conversation

AlessioGr
Copy link
Member

Now, custom Lexical block & inline block components are re-rendered if the fields drawer is saved. This ensures that RSCs receive the updated values, without having to resort to a client component that utilizes the useForm hook.

Additionally, this PRs fixes the lexical selection jumping around after opening a Block or InlineBlock drawer and clicking inside of it.

…ents on submit from drawer, making RSCs more powerful, as they will now receive updated data
@AlessioGr AlessioGr merged commit 9e31e17 into main Nov 22, 2024
52 checks passed
@AlessioGr AlessioGr deleted the feat/lexical/selection-restore-and-more-powerful-rsc-block-components branch November 22, 2024 02:34
Copy link
Contributor

🚀 This is included in version v3.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant