Skip to content

Commit

Permalink
fix: prevent unwanted re-mounting whenever children updates
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhom committed Dec 14, 2020
1 parent 5fa3838 commit e4f1eb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/portal/Portal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const PortalComponent = ({ name: _providedName, children }: PortalProps) => {
unmount(name);
};
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [name, children]);
}, []);
//#endregion

return null;
Expand Down

0 comments on commit e4f1eb9

Please sign in to comment.