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

Function subscribeStack

packages/react-aria-components/src/Sheet.tsx:177–182  ·  view source on GitHub ↗
(listener: () => void)

Source from the content-addressed store, hash-verified

175}
176
177function subscribeStack(listener: () => void) {
178 stackListeners.add(listener);
179 return () => {
180 stackListeners.delete(listener);
181 };
182}
183
184function registerSheet(config: SheetStackEntry) {
185 sheetStack = [...sheetStack, config];

Callers

nothing calls this directly

Calls 2

deleteMethod · 0.80
addMethod · 0.65

Tested by

no test coverage detected