8000 Avoid patching Pinia store with initial state · Issue #326 · kee-org/browser-addon · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Avoid patching Pinia store with initial state #326
Open
@luckyrat

Description

@luckyrat

Sometimes we call store.$patch(m.initialState); which works but it might be faster to instead find a way to supply Pinia with the initial state before we create the store. The previous Vuex store approach with automatic Mutation handling couldn't support this optimisation but I'm hopeful we can make it work now.

Maybe we need to use a PiniaPlugin to supply a runtime default state to the store definition function.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0