Skip to content

[Bug] SSR data not saved in store when using nuxt fetch hook #82

@ghost

Description

Hello !

I ran into an issue while using this library.
I am using version 2.3.5.

When using nuxt fetch hook, and dispatching an action in the store, the data stored in the state vanishes once the page is loaded.
However, when using the asyncData hook allows you to have your component data reflecting the ssr fetched state.
But if in that same hook you only call the action (i.e. don't return anything), the problem is the same as with fetch.

I have created a reproduction repo there : https://github.com/Ghalnas/vuex-class-component-test

Thanks in advance !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions