You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, I have a component which makes use of a package that wants to use window object. Now, window object is undefined (I'm guessing this is due to the fact that window object is not available in server-side).
So, to counter this issue, I'll need to disable SSR for that particular component. The question is, how do I do that?
The text was updated successfully, but these errors were encountered:
Hi @zaykhere, you cannot just disable SSR for a route, you should handle the error in your code. Just use something like typeof window !== "undefined" to check whether your code is running serverside.
❓Question
So, I have a component which makes use of a package that wants to use window object. Now, window object is undefined (I'm guessing this is due to the fact that window object is not available in server-side).
So, to counter this issue, I'll need to disable SSR for that particular component. The question is, how do I do that?
The text was updated successfully, but these errors were encountered: