diff --git a/internal/SharedStateDecorator/SharedStateDecorator.js b/internal/SharedStateDecorator/SharedStateDecorator.js index 704f866f99..6445401f2f 100644 --- a/internal/SharedStateDecorator/SharedStateDecorator.js +++ b/internal/SharedStateDecorator/SharedStateDecorator.js @@ -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) {