Skip to content

serverCacheKey generation from vuex store #4687

@nickdandakis

Description

@nickdandakis

I'm working on a Vue application with vuex, vue-router and SSR. A lot of pages and components are driven from data coming from Contentful (CMS) which is fed into the vuex store.

I'd like to implement component caching, but construct the serverCacheKey with data from the vuex store. Currently, only props is available and I don't see a workaround. Is there any reason only props is available? Is serverCacheKey called before the vuex store settles (before preFetch fires)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions