Skip to content

Include an example of how to handle "runInNewContext: false" with store modules #807

Closed
@jazoom

Description

@jazoom

What problem does this feature solve?

It is not immediately apparent that each store module needs to be a function that returns a fresh module, which needs to be combined with other store modules when the root store is created afresh.

The above sentence is really confusing. See discussion here to understand what I mean:

https://forum.vuejs.org/t/debugging-state-pollution-with-the-new-behaviour-of-vue-2-3-ssr/11724

What does the proposed API look like?

This is a documentation suggestion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions