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

Method constructor

packages/react-stately/src/toast/useToastState.ts:185–188  ·  view source on GitHub ↗
(callback: () => void, delay: number)

Source from the content-addressed store, hash-verified

183 private callback: () => void;
184
185 constructor(callback: () => void, delay: number) {
186 this.remaining = delay;
187 this.callback = callback;
188 }
189
190 reset(delay: number): void {
191 this.remaining = delay;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected