I am working on a project where I am
I am working on a project where I am using the useQuery hook to connect data with my React application. It's a simple query which fetches a document based on the id. However I don't have the id at hand on initialization.
I maintain a state variable to keep track of the currently loaded document id which can be dynamically loaded or empty.
What would be a good pattern to link this state variable with the useQuery hook?
React
Convex Query
2 Replies