Modifying a query result on the client
If I got an object from query and want to modify it, would it be more like
or
or
myvarmyvarmyvarReactivity: clients can subscribe to queries to receive new results when the underlying data changes.
To have these attributes the handler function must be deterministic, which means that given the same arguments (including the query context) it will return the same response. const myvar = useQuery(api.file.myQuery)
const [modifiedMyvar, setModifiedMyvar] = useState()
const betterMyvar = modifiedMyvar || myvar;