Skip to content

Commit ed75ee0

Browse files
Add note that hooks need to be reset separately (#1350)
Co-authored-by: Lenz Weber <mail@lenzw.de>
1 parent eb164f7 commit ed75ee0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/rtk-query/api/created-api/cache-management-utils.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ const resetApiState = () => ({
190190

191191
A Redux action creator that can be dispatched to manually reset the api state completely. This will immediately remove all existing cache entries, and all queries will be considered 'uninitialized'.
192192

193+
Note that [hooks](./hooks.mdx) also track state in local component state and might not fully be reset by `resetApiState`.
194+
193195
#### Example
194196

195197
```ts no-transpile

0 commit comments

Comments
 (0)