We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cca182d + 75f73dc commit 2956fafCopy full SHA for 2956faf
1 file changed
src/trackerHook.js
@@ -56,7 +56,7 @@ export const usePromiseTracker = (outerConfig = defaultConfig) => {
56
? setPromiseInProgress(true)
57
: setTimeout(() => {
58
// Check here ref to internalPromiseInProgress
59
- if (latestInternalPromiseInProgress.current) {
+ if (isMounted.current && latestInternalPromiseInProgress.current) {
60
setPromiseInProgress(true);
61
}
62
}, config.delay);
0 commit comments