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

Method resume

packages/react-stately/src/toast/useToastState.ts:205–216  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

203 }
204
205 resume(): void {
206 if (this.remaining <= 0) {
207 return;
208 }
209
210 this.startTime = Date.now();
211 this.timerId = setTimeout(() => {
212 this.timerId = null;
213 this.remaining = 0;
214 this.callback();
215 }, this.remaining);
216 }
217}

Callers 2

resetMethod · 0.95
resumeAllMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected