Skip to content

Commit

Permalink
removed useEffect dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-stoian-lgp committed Dec 12, 2024
1 parent 6e1dae5 commit d745eb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/SharedStateDecorator/SharedStateDecorator.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ const SharedStateDecorator = hoc(defaultConfig, (config, Wrapped) => {

useEffect(() => {
loadFromContext();
}, [loadFromContext]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

useEffect(() => {
if (!prevNoSharedState && props.noSharedState) {
Expand Down

0 comments on commit d745eb0

Please sign in to comment.