Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9ae21ca

Browse files
committed
fixup! feat(isr): added background revalidation and non-blocking render
1 parent fd2ca54 commit 9ae21ca

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

libs/isr/server/src/isr-handler.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -223,14 +223,7 @@ export class ISRHandler {
223223
}
224224
}
225225
}
226-
// Apply the callback if given
227-
if (config?.modifyCachedHtml) {
228-
const timeStart = performance.now();
229-
finalHtml = config.modifyCachedHtml(req, finalHtml);
230-
const totalTime = (performance.now() - timeStart).toFixed(2);
231-
finalHtml += `<!--\nℹ️ ISR: This cachedHtml has been modified with modifyCachedHtml()\n❗️
232-
This resulted into more ${totalTime}ms of processing time.\n-->`;
233-
}
226+
234227
return res.send(finalHtml);
235228
} catch (error) {
236229
// Cache does not exist. Serve user using SSR

0 commit comments

Comments
 (0)