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

Function onResize

packages/react-aria-components/src/Table.tsx:513–515  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

511 ref: scrollRef,
512 box: 'border-box',
513 onResize() {
514 setWidth(scrollRef.current?.clientWidth ?? 0);
515 }
516 });
517
518 useLayoutEffect(() => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected