Skip to content

Commit

Permalink
chore(nextjs-approuter): add rollbar to useEffect deps
Browse files Browse the repository at this point in the history
  • Loading branch information
mudetroit committed Mar 15, 2024
1 parent 720f20a commit 9f90cba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/nextjs-approuter/src/app/global-error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function GlobalError({

useEffect(() => {
rollbar.error(error);
}, [error]);
}, [error, rollbar]);

return (
<html>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function Error({
const rollbar = useRollbar();
useEffect(() => {
rollbar.error(error);
}, [error]);
}, [error, rollbar]);

return <ResetPage reset={reset} />;
}

0 comments on commit 9f90cba

Please sign in to comment.