Skip to content

Added check for document to allow SSR render to complete without error #137

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

Merged
merged 1 commit into from
Jan 6, 2023

Conversation

aeagle
Copy link
Owner

@aeagle aeagle commented Jan 6, 2023

Check for document existence before trying to dynamically apply space styles.

This is sufficient to allow spaces to be rendered in a SSR rendered environment, i.e. (Next.js).

Note this is not full SSR functionality with initial styling being rendered from the server but enough to allow content of spaces to be available in the initial render. Styling will still be applied by the client-side hydration.

@aeagle aeagle merged commit a4edfee into master Jan 6, 2023
@aeagle aeagle deleted the feature/85-ss-rendering-initial branch January 6, 2023 17:42
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.

1 participant