Jesper Bjerke

Results 14 comments of Jesper Bjerke

I dug deeper a bit. the issue is that the parenthesis gets escaped somewhere down the line. I checked recentProjects.xml and the paths are fine there, and same when i...

any progress on this?

Currently `having` is not supported by the querybuilder. Could be something to include in the future. I assume you want to query on a relation and not the same table...

> Should we just move the query up into fetchOptions? Hah, good point! Completely missed that 😅 Changed now

Noticed the RequestInit type doesn't allow for `query`. And changing it to FetchOptions conflicts with the POST method 🙃 I'll see if I find the correct type to use..

> Actually ... Maybe we need to add it to the `qs` as `&perspective=` rather than via `query` for the `get` request... Seems like it would produce a double query...

Just tested again, both with and without defining perspective in my config. Looks to me as it behaves as expected and just appends the perspective to the existing query params....

Sure! ### With visual editing configured ![loaded with visual editing (renamed assets)](https://github.com/nuxt-modules/sanity/assets/5323483/09bd1d06-1607-4287-b874-c0bc3284a212) ### Without visual editing configured ![loaded without visual editing (renamed assets)](https://github.com/nuxt-modules/sanity/assets/5323483/a2a516de-4970-4e57-b519-d5b886f93985) ### With minimal client ![loaded with minimal...

I think it's originating from `node_modules/@nuxtjs/sanity/dist/runtime/plugins/visual-editing.client.mjs` with the additional imports of `import { useSanityVisualEditingState } from "../composables/visual-editing.mjs";` and `import { useSanityVisualEditing, useSanityLiveMode } from "#imports";` and those files in turn...