Skip to content

Commit 577e0d2

Browse files
updated React Supabase demo
1 parent 537a805 commit 577e0d2

File tree

1 file changed

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

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {
1919
} from '@mui/material';
2020
import Fab from '@mui/material/Fab';
2121
import { usePowerSync, useQuery } from '@powersync/react';
22+
import { DEFAULT_WATCHED_QUERY_DIFFERENTIATOR } from '@powersync/web';
2223
import React, { Suspense } from 'react';
2324
import { useParams } from 'react-router-dom';
2425

@@ -58,7 +59,10 @@ const TodoEditSection = () => {
5859
created_at DESC,
5960
id
6061
`,
61-
[listID]
62+
[listID],
63+
{
64+
differentiator: DEFAULT_WATCHED_QUERY_DIFFERENTIATOR
65+
}
6266
);
6367

6468
const [showPrompt, setShowPrompt] = React.useState(false);

0 commit comments

Comments
 (0)