Skip to content

Commit

Permalink
Merge pull request #6 from tomisu/patch-2
Browse files Browse the repository at this point in the history
Fixed typo in unmount function
  • Loading branch information
zzarcon authored Nov 27, 2019
2 parents f0218eb + aceb853 commit 96f2ae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/useResizeObserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const useResizeObserver = (ref: RefObject<HTMLElement>, callback: Observe
resizeObserver.observe(ref.current);

return () => {
resizeObserver.disonnect();
resizeObserver.disconnect();
}
}, [ref]);
}

0 comments on commit 96f2ae0

Please sign in to comment.