Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There's a setState() in post.tsx constructor #902

Closed
dessalines opened this issue Feb 1, 2023 · 0 comments
Closed

There's a setState() in post.tsx constructor #902

dessalines opened this issue Feb 1, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@dessalines
Copy link
Member

in the new version, I get this error on pretty much all UI page loads:

Error: Inferno Error: cannot update state via setState() in constructor. Instead, assign to `this.state` directly or define a `state = {};`
    at throwError (/app/node_modules/inferno/dist/index.cjs.js:34:9)
    at t.setState (/app/node_modules/inferno/dist/index.cjs.js:2504:9)
    at o.fetchPost (/app/dist/js/server.js:2:811395)
    at new t (/app/dist/js/server.js:2:811319)
    at renderVNodeToString (/app/node_modules/inferno-server/dist/index.cjs.js:155:22)
    at renderVNodeToString (/app/node_modules/inferno-server/dist/index.cjs.js:204:14)
    at renderVNodeToString (/app/node_modules/inferno-server/dist/index.cjs.js:204:14)
    at renderVNodeToString (/app/node_modules/inferno-server/dist/index.cjs.js:280:27)
    at renderVNodeToString (/app/node_modules/inferno-server/dist/index.cjs.js:283:29)
    at renderVNodeToString (/app/node_modules/inferno-server/dist/index.cjs.js:204:14)
@dessalines dessalines added the bug Something isn't working label Feb 1, 2023
dessalines added a commit that referenced this issue Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant