Skip to content

VueX store is unavailable on new pages #5

Closed
@mtancoigne

Description

@mtancoigne

Hi !

I use VueX to manage the app's state. It works fine on the defaultPage but I can't navigate to views that uses it:

// Works on defaultPage
computed: {
  isAuth(){ return this.$store.getters.isAuth }
}
// This error shows up when trying to navigate to a page that does the same:
//   [Vue warn]: Error in render: "TypeError: Cannot read property 'getters' of undefined"
// and the pages does not renders.

The whole $store object is not available to new views; I guess it also may be the same for other objects/plugins


  • navigator version: 0.0.3
  • nativescript: 5
  • nativescript-vue: 2.0.2
  • VueX: 3.0.1

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