Replies: 1 comment 8 replies
-
Hey @RomanSarvarov yep, at least Inertia itself is doing it for the |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
So, now, after SSR configured and enabled, I must avoid all client stuff like window, document variables?
For example, in Laravel Jetstream with Inertia by default we have Modal.vue that contain this code:
Because server does know document variable it will throw error: "ReferenceError: document is not defined".
That should I do in that situation to avoid this exception? Check if document is not undefined or that?
Beta Was this translation helpful? Give feedback.
All reactions