-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Client-only page #24866
Comments
You can use |
Please read my last sentence.
Furthermore, some modules require |
Good @danielroe |
This comment was marked as off-topic.
This comment was marked as off-topic.
is someone on it? |
@danielroe fire |
Describe the feature
Importing a library that is not compatible with SSR in a page may result in an error like
window is undefined
.We need to manually extract it to a separate component to the
components
folder and import it in the page, even though this component may only be used once.Maybe we can add a
clientOnly: boolean
field todefinePageMeta
macro to improve DX. Wrapping this page toClientOnly
for end users.I know we already have
routeRules
. However, I still want to server render the layout when navigating to this page.Additional information
Final checks
The text was updated successfully, but these errors were encountered: