You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @fcisio,
it looks like you're doing something that isn't supported.
The cache option is only relevant to next projects. For this to work I believe it would have to be implemented in https://github.com/sanity-io/hydrogen-sanity/
Describe the bug
The option
cache
is part of the interface, but it's typed ascache?: undefined
.So it will always throw an error.
To Reproduce
loadQuery()
// @ts-expect-error
makes the error go awayExpected behavior
cache
should be typed properlyScreenshots
Which versions of Sanity are you using?
@sanity/cli (global) 3.28.0 (latest: 3.29.0)
@sanity/image-url 1.0.2 (up to date)
@sanity/mutator 3.29.0 (up to date)
@sanity/react-loader 1.8.3 (up to date)
@sanity/types 3.29.0 (up to date)
@sanity/visual-editing 1.2.2 (up to date)
What operating system are you using?
Mac Sonoma
Which versions of Node.js / npm are you running?
10.2.3
v20.10.0
The text was updated successfully, but these errors were encountered: