Adds an item to the query cache based on provided data and cache keys.
addItemFromQueryCache({ data: { name: 'New Item' }, queryKeysOne: [['get-one', 'posts', {}, '1']],}); Copy
addItemFromQueryCache({ data: { name: 'New Item' }, queryKeysOne: [['get-one', 'posts', {}, '1']],});
The parameters for the function.
The new data to add to the corresponding items.
Optional
Cache keys for single queries that should be updated.
Adds an item to the query cache based on provided data and cache keys.
Example