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 api-routes-apollo-server-and-client-auth Example #10334

Merged
merged 2 commits into from Jan 30, 2020
Merged

Fix api-routes-apollo-server-and-client-auth Example #10334

merged 2 commits into from Jan 30, 2020

Commits on Jan 30, 2020

  1. Fix api-routes-apollo-server-and-client-auth Example

    `client.resetStore()` must be called after SignIn, SignOut actions
    
    Otherwise, even the current basic auth is not working 100% of the time...
    
    For example, as caching occurs here:
    
    ```
    const { data, loading } = useQuery(ViewerQuery)
    ```
    
    it sometimes (race conditions!) prevents a user from signing in
    the current code base.
    
    Check apollographql/apollo-cache-persist#34 (comment) comment for more info.
    ivan-kleshnin committed Jan 30, 2020
    Copy the full SHA
    c26aaaf View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    8d7285c View commit details
    Browse the repository at this point in the history