()
| 8 | export default function ChunkLoadRecovery() { |
| 9 | useEffect(() => { |
| 10 | const reloadOnce = () => { |
| 11 | if (sessionStorage.getItem(SESSION_KEY)) return; |
| 12 | sessionStorage.setItem(SESSION_KEY, "1"); |
| 13 | window.location.reload(); |
| 14 | }; |
| 15 | |
| 16 | const isChunkFailure = (msg: string) => |
| 17 | /ChunkLoadError|Loading chunk \d+|Failed to load chunk|Importing a module script failed/i.test( |
no outgoing calls
no test coverage detected