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
// Invalidates the tag for this Post `id`, as well as the `PARTIAL-LIST` tag,
141
+
// causing the `listPosts` query to re-fetch if a component is subscribed to the query.
142
+
// highlight-start
143
+
invalidatesTags: (result, error, id) => [
144
+
{ type: 'Posts', id },
145
+
{ type: 'Posts', id: 'PARTIAL-LIST' },
146
+
],
147
+
// highlight-end
148
+
}),
149
+
}),
150
+
})
151
+
```
79
152
## General Pagination Example
80
153
81
154
In the following example, you'll see `Loading` on the initial query, but then as you move forward we'll use the next/previous buttons as a _fetching_ indicator while any non-cached query is performed. When you go back, the cached data will be served instantaneously.
0 commit comments