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
TLDR: Using <ResponsiveContext.Consumer> to create responsive layout works, but using the useContext hook does not.
Unable to get size of window because Nextjs uses SSR which doesn't have knowledge of window width. Because of this, adding a useContext to control responsive behavior doesn't seem to be having an effect. I think with some added configuration, we will get it working but I need to find a resource that explains how.
TLDR: Using <ResponsiveContext.Consumer> to create responsive layout works, but using the useContext hook does not.
Unable to get size of window because Nextjs uses SSR which doesn't have knowledge of window width. Because of this, adding a useContext to control responsive behavior doesn't seem to be having an effect. I think with some added configuration, we will get it working but I need to find a resource that explains how.
There seems to be some discussion around this:
The text was updated successfully, but these errors were encountered: