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

Method reset

packages/react-stately/src/toast/useToastState.ts:190–193  ·  view source on GitHub ↗
(delay: number)

Source from the content-addressed store, hash-verified

188 }
189
190 reset(delay: number): void {
191 this.remaining = delay;
192 this.resume();
193 }
194
195 pause(): void {
196 if (this.timerId == null) {

Callers 2

useToastFunction · 0.45

Calls 1

resumeMethod · 0.95

Tested by

no test coverage detected