-
Hey! Say I wanna get myself Also, say I create a new post using So I wanted to ask, before i try to reinvent the wheel, if anyone had tackled this before, and if you have a good solution for such a use case. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 13 replies
-
You should be able to use getQueryData for the first case, just get the cached data for the And setQueryData for the second case. After creating a new post you can update the data for the |
Beta Was this translation helpful? Give feedback.
Have a read here: https://tkdodo.eu/blog/seeding-the-query-cache#seeding-details-from-lists