Skip to content

Caching getters on server with Nuxt2 is not working as expected #2529

Open
@yoshrubin

Description

Reproduction

https://github.com/yoshrubin/pinia-ssr-bug

Steps to reproduce the bug

  1. run yarn build && yarn start

Expected behavior

To return a cached version of the getter

Actual behavior

the getter was called for each loop in the v-for loop instead of returning a cached version

Additional information

The issue is for Nuxt2 with@pinia/[email protected] which uses pinia@^2.1.7

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status

      Vue 2

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions