fix: revert to map

This commit is contained in:
Michael Brevard 2024-06-29 12:39:25 +03:00 committed by GitHub
parent 3d88fce4c7
commit 52789fa47a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,7 +18,7 @@ export function useIntersectionObserver (options?: Partial<IntersectionObserverI
}
let observer: IntersectionObserver | null = null
const callbacks = new WeakMap<Element, CallbackFn>()
const callbacks = new Map<Element, CallbackFn>()
const observe: ObserveFn = (element, callback) => {
if (!observer) {