Skip to content

Commit

Permalink
example: prevent infinite use effect loop
Browse files Browse the repository at this point in the history
Adds the missing dependency array to the useEffect in the Project to
avoid an infinite loop.
  • Loading branch information
mschristensen committed Jun 25, 2024
1 parent 1e62b1e commit d81b8d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/livesync/components/Project/Project.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const Project = ({ issues: initialIssues, id }: Props) => {
}

reload();
});
}, [id]);

return (
<Drawer projectId={id}>
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d81b8d0

Please sign in to comment.