(status: ImageLoadingStatus)
| 122 | const image = new window.Image() |
| 123 | |
| 124 | const updateStatus = (status: ImageLoadingStatus) => () => { |
| 125 | if (!isMounted) return |
| 126 | setLoadingStatus(status) |
| 127 | } |
| 128 | |
| 129 | setLoadingStatus('loading') |
| 130 | image.onload = updateStatus('loaded') |
no outgoing calls
no test coverage detected
searching dependent graphs…