Skip to content

using enableStaticRender() on the server causes "read outside a reactive context" warnings on server #3648

Description

@heath-freenome

Intended outcome:
Trying to prevent memory leaks on SSR using the enableStaticRendering() function while also avoiding warnings about data being read outside a reactive context

Actual outcome:
Calling enableStaticRendering() causes the mobx warnings to be produced on my server.

How to reproduce the issue:

I can't provided a code sandbox since it doesn't support server-side rendering

Versions
latest versions of mobx and mobx-react

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions