fix: prevent duplicated requests

This commit is contained in:
EnixCoda 2019-12-26 16:52:16 +08:00
parent aedf3b295c
commit 6a16d5f5b8
No known key found for this signature in database
GPG key ID: FE06F5DFC1C9B8E4

View file

@ -85,7 +85,7 @@ const RawGitako: React.FC<Props & ConnectorState> = function RawGitako(props) {
// init again when setting new accessToken
useDidUpdate(() => {
props.init()
}, [accessToken])
}, [accessToken || '']) // fallback for preventing duplicated requests
const {
errorDueToAuth,