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

Function intersect

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

Source from the content-addressed store, hash-verified

495 });
496
497 function intersect(intersectionRatio) {
498 act(() => {
499 observer.instance.triggerCallback([{intersectionRatio}]);
500 });
501 }
502
503 it('observes the sheet content visibility', async () => {
504 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