Cannot save ‘user’ document to Sanity.io
I am following a YouTube tutorial from JS Mastery:
https://www.youtube.com/watch?v=1RHDhtbqo94&t=4053s
How to trigger a re-render inside a Sanity structure builder API?
I want to re-render documentList
based on selectedId
.
Normally i would just react useState
or vue’s ref
for the selectedId
and then rerender the UI with useEffect
or computed()
if the value changes.