UNPKG

next

Version:

The React Framework

17 lines (16 loc) 546 B
import { workAsyncStorage } from './server-async-storage'; // if we are revalidating we want to re-throw the error so the // function crashes so we can maintain our previous cache // instead of caching the error page export function handleISRError({ error }) { if (workAsyncStorage) { const store = workAsyncStorage.getStore(); if (store?.isStaticGeneration) { if (error) { console.error(error); } throw error; } } } //# sourceMappingURL=handle-isr-error.js.map