OptionaldatasetOptionalperspectiveOptionalprojectOptional BetaresourceExplicit resource to use. On an individual operation this overrides any default;
on a SanityConfig it becomes the instance's default resource. Unlike
projectId/dataset, this can also be a media library or canvas resource.
OptionalresourceName of a resource registered via the resources prop on <SanityApp>.
Resolved to a DocumentResource at the React layer.
React SDK resource handle — extends the core DatasetHandle with
resourceNamefor context-based resource resolution.Use this (or its subtypes) as the options type for custom hooks that need to accept a resource. It accepts a
resourceobject, aresourceNameregistered via theresourcesprop on<SanityApp>, or a bareprojectId/datasetpair for backward compatibility.