8000 fixup! feat(isr): added background revalidation and non-blocking render · rx-angular/rx-angular@9ae21ca · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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)
0