Skip to content

Commit 8f43c7d

Browse files
Merge pull request #390 from monkvision/fix/use-settings-crash
fix: useSettings crash when using an initial state
2 parents c739ecb + dd0e355 commit 8f43c7d

File tree

1 file changed

+1
-1
lines changed
  • packages/camera/src/hooks/useSettings

1 file changed

+1
-1
lines changed

packages/camera/src/hooks/useSettings/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export default function useSettings({ initialState = initialSettingsState, camer
8181
}
8282

8383
return newSettings;
84-
}, [camera, initialState]);
84+
}, [camera]);
8585

8686
useEffect(() => {
8787
(async () => {

0 commit comments

Comments
 (0)