apollographql / apollographql/apollo-client-integrations

How do i re-create the client with <ApolloNextAppProvider />?

Open
#103 52 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
556
Forks
53
PR merge metrics
No merged PRs in 30d

Description

I'm using and I to update the `makeClient` function, but when i update the function, the component doesn't make a new client :( how can i do that? i have dependencies that are retrieved during runtime (an auth token) and i want to recreate the client when i get the token on login, but since it already rendered the token remains null. does that make sense?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with ApolloNextAppProvider and the makeClient function described in the issue, then trace how the provider is initialized and how the runtime auth token becomes available after login. Compare that lifecycle with the documented Next.js App Router integration and define done as the client using the post-login token rather than retaining null; the 52-comment thread should be reviewed for the agreed behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, next.js, typescript
Domain
authentication, frontend
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.