From 99d2b6da123df6ade7f8f8ae5a1689dfdf9e49f8 Mon Sep 17 00:00:00 2001 From: Jason Miller Date: Mon, 29 Mar 2021 20:03:44 -0400 Subject: [PATCH] Bugfix: Prevent infinite render queue array growth (#195) --- src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.js b/src/index.js index 1d8f9bf0..e506d054 100644 --- a/src/index.js +++ b/src/index.js @@ -61,6 +61,7 @@ function renderToString(vnode, context, opts) { // options._commit, we don't schedule any effects in this library right now, // so we can pass an empty queue to this hook. if (options.__c) options.__c(vnode, EMPTY_ARR); + EMPTY_ARR.length = 0; options.__s = previousSkipEffects; return res; }