From 33a5f4523944183a6f845ce8d478ece8f90b43ac Mon Sep 17 00:00:00 2001 From: Noah Gentile Date: Sun, 3 Nov 2024 12:58:36 -0800 Subject: [PATCH] docs: adjust readme --- package/README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/package/README.md b/package/README.md index 0370309..59cacc9 100644 --- a/package/README.md +++ b/package/README.md @@ -204,7 +204,12 @@ const page = await context.sanity.loadQuery(query, params, { // display in the subrequest profiler, you can pass that here: // debug: { // displayName: 'query Homepage' - // } + // }, + + // You can also pass a function do determine whether or not to cache the response + // shouldCacheResult(value){ + // return true + // }, }, // ...as well as other request options