Skip to content
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.

Commit

Permalink
Fix for #226 (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
FredyC committed Oct 14, 2019
1 parent 9944f67 commit c004aad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/useObserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export function useObserver<T>(
const dispose = () => {
if (reaction.current && !reaction.current.isDisposed) {
reaction.current.dispose()
reaction.current = null
}
}

Expand Down

0 comments on commit c004aad

Please sign in to comment.