From 5b01005cad6f03ad6dab21955114e9e582c42df7 Mon Sep 17 00:00:00 2001 From: NorbertNader Date: Fri, 11 Jun 2021 23:28:08 -0700 Subject: [PATCH] fix: await router push in ssr server not awaiting might cause Hydration completed but contains mismatches --- src/guide/ssr/routing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guide/ssr/routing.md b/src/guide/ssr/routing.md index 28c897b8ab..943bf1389e 100644 --- a/src/guide/ssr/routing.md +++ b/src/guide/ssr/routing.md @@ -101,7 +101,7 @@ const createApp = require(appPath).default server.get('*', async (req, res) => { const { app, router } = createApp() - router.push(req.url) + await router.push(req.url) await router.isReady() const appContent = await renderToString(app)