You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/local-state/local-state-management.mdx
+3-7Lines changed: 3 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ sequenceDiagram
22
22
Cache->>GraphQL Server: Queries remote fields;
23
23
Note over GraphQL Server: Resolves remote fields;
24
24
GraphQL Server->>Cache: Returns remote fields;
25
-
Note over Cache: Caches remote fields*;
25
+
Note over Cache: Caches remote fields;
26
26
Cache->>Apollo Client: Returns ALL fields;
27
27
Note over Apollo Client: Time passes…;
28
28
Apollo Client->>Cache: Executes same query;
@@ -31,9 +31,7 @@ sequenceDiagram
31
31
Cache->>Apollo Client: Returns ALL fields;
32
32
```
33
33
34
-
To support this flow, Apollo Client 3 introduces two complementary mechanisms for managing local state: [field policies](#field-policies-and-local-only-fields) and [reactive variables](#reactive-variables).
35
-
36
-
> \* The [local resolver API](./local-resolvers/) from previous versions of Apollo Client is also available but is [deprecated](./local-resolvers/#deprecation-notice). Some additional steps may occur when using this, e.g. the `@client(always:true)` directive would recalculate local field resolvers after remote fields are cached.
34
+
To support this flow, Apollo Client introduces two complementary mechanisms for managing local state: [field policies](#field-policies-and-local-only-fields) and [reactive variables](#reactive-variables).
37
35
38
36
## Field policies and local-only fields
39
37
@@ -55,8 +53,6 @@ Whenever the value of a reactive variable changes, Apollo Client automatically d
55
53
56
54
## Local resolvers
57
55
58
-
In earlier versions of Apollo Client, you define **local resolvers** to populate and modify local-only fields. These resolvers are similar in structure and purpose to the [resolvers that your GraphQL server defines](/apollo-server/data/resolvers/).
59
-
60
-
This functionality is still available in Apollo Client 3, but will be moved out of the core module in a future major release.
56
+
You define **local resolvers** to populate and modify local-only fields. These resolvers are similar in structure and purpose to the [resolvers that your GraphQL server defines](/apollo-server/data/resolvers/).
61
57
62
58
[Learn more about local resolvers](./local-resolvers)
0 commit comments