Skip to content

Commit b6ab0ff

Browse files
authored
Merge pull request #72 from Asciant/useEffect-array-not-object
useEffect API accepts an array of values, not an object (config)
2 parents 0b77230 + 25ad64e commit b6ab0ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/trackerHook.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const usePromiseTracker = (outerConfig = defaultConfig) => {
1818
setInternalPromiseInProgress(true);
1919
setPromiseInProgress(true);
2020
}
21-
}, config)
21+
}, [config])
2222

2323
// Internal will hold the current value
2424
const [

0 commit comments

Comments
 (0)