diff --git a/docs/source/advanced/caching.md b/docs/source/advanced/caching.md index 09ea8a9aca5..e00f9299c8b 100644 --- a/docs/source/advanced/caching.md +++ b/docs/source/advanced/caching.md @@ -147,6 +147,8 @@ const { todo } = client.readQuery({ }); ``` +Note that you should not modify the return value of `readQuery` because the same object may be reused between components. If you want to update the data in the cache, create a new replacement object and pass it to `writeQuery`. +