diff --git a/src/view/utils/useChanged.js b/src/view/utils/useChanged.js index ad659e60..d756cfdf 100644 --- a/src/view/utils/useChanged.js +++ b/src/view/utils/useChanged.js @@ -22,6 +22,7 @@ const useChanged = (effect, dependencies) => { useEffect(() => { if (isFirstRenderRef.current) { isFirstRenderRef.current = false; + return; } effect(); }, dependencies);