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

Method pauseAll

packages/react-stately/src/toast/useToastState.ts:156–162  ·  view source on GitHub ↗

Pauses the timers for all visible toasts.

()

Source from the content-addressed store, hash-verified

154
155 /** Pauses the timers for all visible toasts. */
156 pauseAll(): void {
157 for (let toast of this.visibleToasts) {
158 if (toast.timer) {
159 toast.timer.pause();
160 }
161 }
162 }
163
164 /** Resumes the timers for all visible toasts. */
165 resumeAll(): void {

Callers

nothing calls this directly

Calls 1

pauseMethod · 0.80

Tested by

no test coverage detected