We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1e123b commit bc55d20Copy full SHA for bc55d20
src/observe.ts
@@ -1,6 +1,6 @@
1
import { ObserverInstanceCallback } from './index';
2
3
-const ObserverMap = new Map<
+export const ObserverMap = new Map<
4
string,
5
{
6
id: string;
src/test-utils.ts
@@ -1,4 +1,5 @@
import { act } from 'react-dom/test-utils';
+import { ObserverMap } from './observe';
type Item = {
callback: IntersectionObserverCallback;
@@ -48,6 +49,7 @@ afterEach(() => {
48
49
// @ts-ignore
50
global.IntersectionObserver.mockClear();
51
observers.clear();
52
+ ObserverMap.clear();
53
});
54
55
function triggerIntersection(
0 commit comments