()
| 24 | const [sound, setSound] = React.useState<Howl | null>(null); |
| 25 | |
| 26 | const handleLoad = function() { |
| 27 | if (typeof onload === 'function') { |
| 28 | // @ts-ignore |
| 29 | onload.call(this); |
| 30 | } |
| 31 | |
| 32 | if (isMounted.current) { |
| 33 | // @ts-ignore |
| 34 | setDuration(this.duration() * 1000); |
| 35 | } |
| 36 | |
| 37 | // @ts-ignore |
| 38 | setSound(this); |
| 39 | }; |
| 40 | |
| 41 | // We want to lazy-load Howler, since sounds can't play on load anyway. |
| 42 | useOnMount(() => { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…