You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//...import{configure}from"mobx";import{enableStaticRendering}from"mobx-react";//...// configuring for ssrconfigure({enforceActions: "never"});enableStaticRendering(true);// if keep 'false' then all works, but is not recommended for SSR//... somewhere during renderingletelem=<TestControl/>;
result=ReactDOMServer.renderToString(elem);
Infinite loop occurs in observerClass.ts
target.render=function(){if(!isUsingStaticRendering()){this.render=createReactiveRender.call(this,originalRender)}returnthis.render()// during this call again entering same render function}
The text was updated successfully, but these errors were encountered:
After fix #3395 started getting stack overflow during SSR.
Am I doing something wrong?
Using:
"react": "^18.2.0",
"mobx": "^6.6.1",
"mobx-react": "^7.5.1"
"typescript": "^4.7.4".
TypeScript options
Test component
Rendering
Infinite loop occurs in observerClass.ts
The text was updated successfully, but these errors were encountered: