Skip to content

Commit

Permalink
fix(Appbar): fix the use effect #closes2161
Browse files Browse the repository at this point in the history
  • Loading branch information
kaminderpal committed May 28, 2024
1 parent cdb84f3 commit fc211f1
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,7 @@ export function AppBar(props: AppBarProps): JSX.Element {
appBarApi.offAppBarCreated(handleAddButtonPanel);
appBarApi.offAppBarRemoved(handleRemoveButtonPanel);
};
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [appBarApi]);
}, [appBarApi, handleAddButtonPanel, handleRemoveButtonPanel]);

useEffect(() => {
// Log
Expand Down

0 comments on commit fc211f1

Please sign in to comment.