Unlock seamless workflows and faster delivery with our latest releases - Join the deep dive

Issue with Sanity GROQ fetch returning string data with zero width spaces.

2 replies
Last updated: May 16, 2024
Hello,Does anyone know why all of a sudden Sanity GROQ fetch is returning string data with a lot of zero width spaces?
May 16, 2024, 7:04 AM
This is STEGA. Its the path to where the the data lives in sanity. This is used for the presentation edit/providing links back to the studio.
https://www.sanity.io/docs/stega#fad3406bd530 You can remove it with

import {vercelStegaCleanAll} from "@sanity/client/stega"

function showDocument(document: SanityDocument, currentMarket: string) {
  return vercelStegaCleanAll(document.market) === currentMarket
}
May 16, 2024, 12:32 PM
Aha so this happened on live editing preview mode. Makes sense. Thank you for the guide.
May 16, 2024, 11:32 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?