Skip to content

Commit

Permalink
Update docs to reflect current code
Browse files Browse the repository at this point in the history
Fixes #2249
  • Loading branch information
PowerKiKi committed Apr 30, 2024
1 parent b62ef07 commit 4676d3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/src/pages/docs/recipes/authentication.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ Since Apollo caches all of your query results, it's important to get rid of them
state changes.

The easiest way to ensure that the UI and store state reflects the current user's permissions is to
call `Apollo.getClient().resetStore()` after your login or logout process has completed. This will
cause the store to be cleared and all active queries to be refetched.
call `Apollo.client.resetStore()` after your login or logout process has completed. This will cause
the store to be cleared and all active queries to be refetched.

Another option is to reload the page, which will have a similar effect.

Expand All @@ -175,7 +175,7 @@ class AuthService {
// some app logic

// reset the store after that
this.apollo.getClient().resetStore();
this.apollo.client.resetStore();
}
}

Expand Down

0 comments on commit 4676d3d

Please sign in to comment.