mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: prevent duplicated requests
This commit is contained in:
parent
aedf3b295c
commit
6a16d5f5b8
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue