Optionalparams?: QueryParams | Promise<QueryParams>Parameters used by the GROQ query.
Optionalperspective?: LivePerspectiveContent perspective used for the fetch.
GROQ query to execute.
OptionalrequestTag?: stringThis request tag is used to identify the request when viewing request logs from your Sanity Content Lake.
Optionalstega?: booleanEnables stega encoding of the data. This is typically only used in draft
mode with perspective: 'drafts' and @sanity/visual-editing.
Optionaltag?: neverOptionaltags?: string[]Add custom next.tags to the underlying fetch request.
https://nextjs.org/docs/app/api-reference/functions/fetch#optionsnexttags This can be used in conjunction with custom fallback revalidation strategies, as well as with custom Server Actions that mutate data and want to render with fresh data right away (faster than the Live Event latency).
Use this function to fetch data from Sanity in your React Server Components. When used within a
generateMetadataorgenerateViewportfunction, make sure you setstega: false. When used within agenerateStaticParamsfunction, make sure you setstega: falseandperspective: 'published'.