Skip to content

Commit 25ad64e

Browse files
committed
useEffect API accepts an array of values, not an object (config)
1 parent 0b77230 commit 25ad64e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/trackerHook.js

Lines changed: 1 addition & 1 deletion
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)