Skip to content

Commit

Permalink
Bugfix: Prevent infinite render queue array growth (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
developit authored Mar 30, 2021
1 parent 74a851f commit 99d2b6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 99d2b6d

Please sign in to comment.