Function
flushCalls
(
queue: Set<T>,
...args: Parameters<T>
)
Source from the content-addressed store, hash-verified
| 86 | |
| 87 | /** Call every function in the queue with the same arguments. */ |
| 88 | export const flushCalls = <T extends AnyFn>( |
| 89 | queue: Set<T>, |
| 90 | ...args: Parameters<T> |
| 91 | ) => flush(queue, fn => fn(...args)) |
| 92 | |
| 93 | // For server-side rendering: https://github.com/react-spring/zustand/pull/34 |
| 94 | // Deno support: https://github.com/pmndrs/zustand/issues/347 |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…