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 f1e95d5 commit 2926132Copy full SHA for 2926132
demos/react-supabase-todolist/src/app/views/todo-lists/edit/page.tsx
@@ -46,7 +46,7 @@ const TodoEditSection = () => {
46
[listID]
47
);
48
49
- const secondQuery = useQuery<TodoRecord>(
+ const { data: todos } = useQuery<TodoRecord>(
50
/* sql */ `
51
SELECT
52
*
@@ -58,12 +58,8 @@ const TodoEditSection = () => {
58
created_at DESC,
59
id
60
`,
61
- [listID],
62
- {
63
- streams: import.meta.env.VITE_USE_SYNC_STREAMS == 'true' ? [{ name: 'todos', parameters: { list: listID } }] : []
64
- }
+ [listID]
65
66
- const { data: todos } = secondQuery;
67
68
const [showPrompt, setShowPrompt] = React.useState(false);
69
const nameInputRef = React.createRef<HTMLInputElement>();
0 commit comments