Skip to content

Commit

Permalink
align code example
Browse files Browse the repository at this point in the history
  • Loading branch information
wizardlyhel committed Oct 23, 2024
1 parent ea8c4b0 commit daa1fac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .changeset/serious-pillows-hug.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default {
const fetchMyCMS = (query) => {
- return withCache(['my-cms', query], CacheLong(), async (params) => {
+ return withCache.run({
+ cacheKey: ['my-cms-composite', query],
+ cacheKey: ['my-cms', query],
+ cacheStrategy: CacheLong(),
+ shouldCacheResult: (body) => !body?.errors,
+ }, async(params) => {
Expand Down

0 comments on commit daa1fac

Please sign in to comment.