Michael ReaM
Convex Community2y ago
34 replies
Michael Rea

query that runs once?

Is there a way to load data from a query once and stop it from being updated on db change.


I've got a collaborative text editor that I'm loading the initial data from convex using useQuery but I'm only using the data once when loading the component for the first time.

Every time I make changes in the text editor the update note mutation is run and useQuery is run.

Is it costing me to get the new data from useQuery everytime the user types?

Since I only need to load the data intially it seems like a waste.

So basically I'm looking for a non-realtime query read.
Was this page helpful?