
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeThis question is about general JavaScript concepts (passing values vs references, destructuring, and callbacks) and isn't related to Sanity. You'll get better help posting this in a JavaScript-focused community like:
javascript tagIf you have questions about using JavaScript with Sanity — like writing GROQ queries, creating custom input components, setting up validation functions, or working with Sanity Functions — I'm happy to help with those!
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.
Content operations
Content backend


The only platform powering content operations
By Industry


Tecovas strengthens their customer connections
Build and Share

Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag store