MCPcopy Create free account
hub / github.com/adobe/react-spectrum / intersect

Function intersect

packages/react-aria-components/test/Sheet.test.js:379–383  ·  view source on GitHub ↗
(intersectionRatio)

Source from the content-addressed store, hash-verified

377 });
378
379 function intersect(intersectionRatio) {
380 act(() => {
381 observer.instance.triggerCallback([{intersectionRatio}]);
382 });
383 }
384
385 it('observes the sheet content visibility', async () => {
386 let tree = render(<TestSheet />);

Callers 1

Sheet.test.jsFile · 0.85

Calls 2

actFunction · 0.85
triggerCallbackMethod · 0.80

Tested by

no test coverage detected