useTasks
Source:hooks/commits/useTasks.ts (54 lines)
The useTasks hook fetches all tasks assigned to the current user from the Convex backend using a real-time reactive query, sorts them by recency, and synchronizes the result to the global useTaskStore for cross-screen access.
Data Source
Unlike most hooks in the app that read from local SQLite, useTasks queries the Convex backend directly via the reactiveuseQuery hook: