-
Notifications
You must be signed in to change notification settings - Fork 13
reset prererendering log at beginning of prerender: #176
Comments
Is there more context on this bug? I need some steps to reproduce it. |
just make a simple component, load in browser, then load again You will see that every time you load you keep all the old log statements from the last pre-rerenders. For production apps it makes pre-rerendering unworkable, as eventually the console log array chews up a significant amount of memory. The above fix simple clears the |
Turns our this behavior happens in v8 runtime and not the default runtime by But this also leads to another concern, the |
this is true, but... to resolve this issue here is what I have tried to do (may have problems) There is a class method in Its not a good situation however, and we should try to figure out why it can't be fixed properly in the engine. |
this one line fixes it (
console.history = []
)Not sure why react-rails is not doing this for us... it could be because we screw around with the rendering mechanism to add our own custom footers...
The text was updated successfully, but these errors were encountered: