We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47d9397 commit 03c0bdcCopy full SHA for 03c0bdc
demos/nextjs-supabase-todolist/src/app/views/todo-lists/edit/page.tsx
@@ -39,7 +39,7 @@ const TodoEditSection = () => {
39
listID
40
]);
41
42
- const todos = usePowerSyncWatchedQuery<TodoRecord>(`SELECT * FROM todos WHERE list_id=?`, [listID]);
+ const todos = usePowerSyncWatchedQuery<TodoRecord>(`SELECT * FROM ${TODOS_TABLE} WHERE list_id=? ORDER BY created_at DESC, id`, [listID]);
43
44
const [showPrompt, setShowPrompt] = React.useState(false);
45
const nameInputRef = React.createRef<HTMLInputElement>();
0 commit comments