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

Lazy load editor components #8

Merged
merged 2 commits into from Apr 12, 2023
Merged

Conversation

nilskj
Copy link
Collaborator

@nilskj nilskj commented Apr 11, 2023

First step for improvements based on #6 . This PR introduces some awaited / lazy loaded components for the Editor parts.
To simplify for all the pages using the editor tools we wrap the controls under the same name EditorToolbar that forwards all props and events to an inner lazy loaded component EditorControls.

PlainText, RichText and Image will all be lazy loading their inner parts.

…nd EditorToolbar. Lazy load Plain and Rich text editors.
…ditor controls. Also lazy load Plain and Rich text editors.
@nilskj
Copy link
Collaborator Author

nilskj commented Apr 11, 2023

This actually solves this bug as well (#2) since we are lazy loading the editor components and don't render them server side. I cannot reproduce that bug with this addition.

@michael michael merged commit 86df4bd into michael:main Apr 12, 2023
@nilskj nilskj deleted the feature/lazy-load-editor branch April 12, 2023 17:33
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

2 participants