diff --git a/package.json b/package.json index 59df4f4..f27681b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-done-tracker", - "version": "0.0.13", + "version": "0.0.14", "description": "Keep track of when your React tree is done loading", "type": "module", "main": "./dist/index.js", diff --git a/src/use-done-tracker-subscription.ts b/src/use-done-tracker-subscription.ts index 01f6452..eaf0e1b 100644 --- a/src/use-done-tracker-subscription.ts +++ b/src/use-done-tracker-subscription.ts @@ -40,7 +40,6 @@ export const useDoneTrackerSubscription = ( useEffect(() => { if (!done) return; const fn = () => done(); - if (doneTracker.done) done(); doneTracker.addEventListener("done", fn); return () => doneTracker.removeEventListener("done", fn); }, [doneTracker, done]);