Skip to content

Commit 2926132

Browse files
committed
Restore demos
1 parent f1e95d5 commit 2926132

File tree

1 file changed

+2
-6
lines changed
  • demos/react-supabase-todolist/src/app/views/todo-lists/edit

1 file changed

+2
-6
lines changed

demos/react-supabase-todolist/src/app/views/todo-lists/edit/page.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const TodoEditSection = () => {
4646
[listID]
4747
);
4848

49-
const secondQuery = useQuery<TodoRecord>(
49+
const { data: todos } = useQuery<TodoRecord>(
5050
/* sql */ `
5151
SELECT
5252
*
@@ -58,12 +58,8 @@ const TodoEditSection = () => {
5858
created_at DESC,
5959
id
6060
`,
61-
[listID],
62-
{
63-
streams: import.meta.env.VITE_USE_SYNC_STREAMS == 'true' ? [{ name: 'todos', parameters: { list: listID } }] : []
64-
}
61+
[listID]
6562
);
66-
const { data: todos } = secondQuery;
6763

6864
const [showPrompt, setShowPrompt] = React.useState(false);
6965
const nameInputRef = React.createRef<HTMLInputElement>();

0 commit comments

Comments
 (0)