Skip to content

Commit

Permalink
Update Todos component to remove unused args and enable devtools in t…
Browse files Browse the repository at this point in the history
…odo service
  • Loading branch information
b3hr4d committed Dec 2, 2024
1 parent 3d6470b commit b62afd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion examples/nextjs/src/components/Todos.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ interface TodosProps {}
const Todos: React.FC<TodosProps> = () => {
const { data, error, loading } = useQueryTodo({
functionName: "getAllTodos",
args: [],
refetchOnMount: true,
refetchInterval: 5000
})
Expand Down
3 changes: 2 additions & 1 deletion examples/nextjs/src/service/todo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ export const {
useUpdateCall: useUpdateTodo
} = createActorContext<typeof todo>({
idlFactory,
canisterId
canisterId,
withDevtools: true
})

0 comments on commit b62afd3

Please sign in to comment.