Skip to content

Commit 99d2b6d

Browse files
authored
Bugfix: Prevent infinite render queue array growth (#195)
1 parent 74a851f commit 99d2b6d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ function renderToString(vnode, context, opts) {
6161
// options._commit, we don't schedule any effects in this library right now,
6262
// so we can pass an empty queue to this hook.
6363
if (options.__c) options.__c(vnode, EMPTY_ARR);
64+
EMPTY_ARR.length = 0;
6465
options.__s = previousSkipEffects;
6566
return res;
6667
}

0 commit comments

Comments
 (0)