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

Method pause

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

Source from the content-addressed store, hash-verified

193 }
194
195 pause(): void {
196 if (this.timerId == null) {
197 return;
198 }
199
200 clearTimeout(this.timerId);
201 this.timerId = null;
202 this.remaining -= Date.now() - this.startTime!;
203 }
204
205 resume(): void {
206 if (this.remaining <= 0) {

Callers 5

useToastFunction · 0.80
pauseAllMethod · 0.80
VideoFunction · 0.80
reducedMotionCheckFunction · 0.80
toggleFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected