Skip to content

Commit

Permalink
feat: remove deps from hook
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMuzyk committed Oct 4, 2023
1 parent f9aa0d7 commit 09e7dc1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Onfido/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ function Onfido({sdkToken, onUserExit, onSuccess, onError}) {

onError(errorMessage);
});
}, [onError, onSuccess, onUserExit, sdkToken, translate]);
// Onfido should be initialized only once on mount
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

return <FullscreenLoadingIndicator />;
}
Expand Down

0 comments on commit 09e7dc1

Please sign in to comment.