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

Fix Apollo dev tools extension #601

Merged
merged 1 commit into from
May 22, 2023
Merged

Conversation

Leitsi
Copy link
Contributor

@Leitsi Leitsi commented May 19, 2023

Was happening because next.js renders our app (ui/_app.tsx) twice, and the cache is initialized during that process.
This seems to be because of next.js rewrites, and is normal behavior: vercel/next.js#33028 (comment)

However, the Apollo dev tools extension doesn't work properly (shows nothing) when multiple apollo clients are created. See:
apollographql/apollo-client-devtools#822 (comment)


This change is Reviewable

Was happening because next.js renders our app (ui/_app.tsx) twice,
and the cache is initialized during that process.
This seems to be because of next.js rewrites, and is normal behavior:
vercel/next.js#33028 (comment)

However, the Apollo dev tools extension doesn't work properly (shows nothing)
when multiple apollo clients are created. See:
apollographql/apollo-client-devtools#822 (comment)
Copy link
Contributor

@HenrikHartiala HenrikHartiala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @Leitsi)

@Leitsi Leitsi merged commit 39ff71c into main May 22, 2023
10 checks passed
@Leitsi Leitsi deleted the apollo-dev-tools-extension-fix branch May 22, 2023 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants