Skip to content

Using with Composition API #95

@lexdubyna

Description

@lexdubyna

Hello!
Currently trying to make it work with the new composition API.
I found a codesandbox where it does work and forked it to try make it work with component helpers (without writing const store = context.root.$store on every component), but then get() returns this in template:

function () { var args = [], len = arguments.length; while ( len-- ) args[ len ] = arguments[ len ]; if (!this.$store) { throw new Error('[Vuex Pathify] Unexpected condition: this.$store is undefined.\n\nThis is a known edge case with some setups and will cause future lookups to fail') } if (!getter || store !== this.$store) { store = this.$store; getter = makeGetter(store, path, stateOnly); } return getter.call.apply(getter, [ this ].concat( args )) }

Is there a way to make it work?
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions