When I update a document on Sanity, the contents I see on the browser do not show the latest changes without a cache reset/hard reload.
I created a webhook and pointed it to this url:
https://<projectId>.api.sanity.io/v2021-03-25/data/query/production?query=*[0]
I don't know if that is correct, but when I update a document I do see the webhook fires in the logs.
It errors:
{"error":{"bodyTruncated":false,"description":"json: unknown field \\"price\\"","type":"httpInvalidRequestBody"}}\n
-
What have I not done that is the cause of this error?
-
If I fix this error, will it revalidate my data or do I have to somehow call it from my app to use
revalidateTags()? If that is the case, how?