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, I spent a few hours fighting this issue when trying to use next-sanity's previewSubscriptionHook. I traced it down to this package. Basically there is a syntax error for this query:
This is a problem because the Sanity Studio Vision plugin allows the spaces. Fetching using Sanity Client also allows spaces between the derefencing operator.
This leads me to believe that the spaces between the operator is valid syntax, which means that it's a bug in groq-js.
If it is actually not valid syntax to have the spaces, then I think the aforementioned libraries and studio plugin should reject the syntax or print a warning for the developer.
The text was updated successfully, but these errors were encountered:
Hi, I spent a few hours fighting this issue when trying to use
next-sanity
's previewSubscriptionHook. I traced it down to this package. Basically there is a syntax error for this query:Everything works when I remove the spaces in between the deferencing operator
->
:This is a problem because the Sanity Studio Vision plugin allows the spaces. Fetching using Sanity Client also allows spaces between the derefencing operator.
This leads me to believe that the spaces between the operator is valid syntax, which means that it's a bug in
groq-js
.If it is actually not valid syntax to have the spaces, then I think the aforementioned libraries and studio plugin should reject the syntax or print a warning for the developer.
The text was updated successfully, but these errors were encountered: