Poll Data
I understand that when you call useQuery you automatically get the benefits of subscribing to changes in the data, but is there any means to pull on this data programmatically?
I’m interested in building a collaborative editor, but I’m having a hard time translating how so might implement that with something like socket.io to convex.
2 Replies
Hey @stevanfreeborn, you might find the
watchQuery
method helpful:
https://docs.convex.dev/api/classes/react.ConvexReactClient#watchqueryClass: ConvexReactClient | Convex Developer Hub
react.ConvexReactClient
Thanks for pointing me in a new direction! I was a bit stuck. 🙏