@@ -30,11 +30,11 @@ of the 'write' trigger on web, we've omitted a 'background' trigger on web.
30
30
resolve once the cache has been restored, which you can await before rendering
31
31
your app.
32
32
33
- This library, like Apollo Client, is framework agnostic; however, since many
33
+ This library, like Apollo Client, is framework- agnostic; however, since many
34
34
people have asked, here's an example of how to handle this in React. PRs with
35
35
examples from other frameworks are welcome.
36
36
37
- You can find all examples in the [ examples] ( ./examples/ ) directory.
37
+ You can find all examples in the [ examples] ( ./../examples ) directory.
38
38
39
39
## React Using Hooks
40
40
@@ -110,8 +110,7 @@ details.
110
110
Other alternatives have been recommended in
111
111
[ #2 ] ( https://github.com/apollographql/apollo3-cache-persist/issues/2#issuecomment-350823835 ) ,
112
112
including using logic in your UI to filter potentially-outdated information.
113
- Furthermore, the [ ` maxSize ` option] ( #additional-options ) and
114
- [ methods on ` CachePersistor ` ] ( #using-cachepersistor ) provide facilities to
113
+ Furthermore, the ` maxSize ` option and methods on ` CachePersistor ` provide facilities to
115
114
manage the growth of the cache.
116
115
117
116
For total control over the cache contents, you can setup a background task to
@@ -126,11 +125,11 @@ benefit of ensuring the cache is loaded with fresh data when your app launches.
126
125
127
126
For the same reasons given in the preceding answer, it's not possible to migrate
128
127
or transform your persisted cache data. However, by using the
129
- [ methods on ` CachePersistor ` ] ( #using-cachepersistor ) , it's simple to reset the
128
+ methods on ` CachePersistor ` , it's simple to reset the
130
129
cache upon changes to the schema.
131
130
132
131
Simply instantiate a ` CachePersistor ` and only call ` restore() ` if the app's
133
- schema hasn't change . (You'll need to track your schema version yourself.)
132
+ schema hasn't changed . (You'll need to track your schema version yourself.)
134
133
135
134
Here's an example of how this could look:
136
135
0 commit comments