(next)
| 84 | let visibilityHandler: (() => void) | null = null |
| 85 | |
| 86 | const apply: Apply<S> = (next) => { |
| 87 | if (typeof next === 'function') { |
| 88 | inner.setState((prev) => (next as (p: S) => S)(prev), true) |
| 89 | } else { |
| 90 | inner.setState(next, true) |
| 91 | } |
| 92 | lastEventTs = Date.now() |
| 93 | } |
| 94 | |
| 95 | function start() { |
| 96 | if (cleanup) return |
no outgoing calls
no test coverage detected