Skip to content
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

Context.Consumer not currently accessible in nextjs project #34

Closed
taysea opened this issue Nov 19, 2019 · 0 comments
Closed

Context.Consumer not currently accessible in nextjs project #34

taysea opened this issue Nov 19, 2019 · 0 comments

Comments

@taysea
Copy link
Collaborator

taysea commented Nov 19, 2019

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:

@taysea taysea created this issue from a note in Experience Studio Backlog (To do) Nov 19, 2019
@taysea taysea moved this from To do to In progress in Experience Studio Backlog Nov 20, 2019
@taysea taysea closed this as completed Nov 20, 2019
Experience Studio Backlog automation moved this from In progress to Done Nov 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant