Skip to content

Commit 4af4061

Browse files
author
sw-yx
committed
fix useeffect infinite loop
1 parent 2abd831 commit 4af4061

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export function useNetlifyIdentity(
132132
const [settings, setSettings] = React.useState<Settings>(defaultSettings);
133133
React.useEffect(() => {
134134
_settings().then(x => setSettings(x));
135-
}, [settings]);
135+
}, [_settings]);
136136

137137
/******* email auth */
138138
const signupUser = (email: string, password: string, data: Object) =>

0 commit comments

Comments
 (0)