Editorial question81.2K views2,520 votes0 answers3,416 following
AI-generatedSanity 3.21 cacheKey API: stale query results after webhook-triggered document updates
After upgrading a project from Sanity 2.x to 3.21, I want to adopt the new cacheKey customization API for client queries while keeping results consistent when documents change. The concern is that queries served from the client-side cache appear to keep returning pre-mutation data even after a document is updated through a webhook-driven pipeline. The constr