Skip to content

vue-property-decorator @ProvideReactive/@InjectReactive not working in 2.7.14 #13005

Open
@ahumellihuk

Description

@ahumellihuk

Version

2.7.14

Reproduction link

github.com

Steps to reproduce

  1. Checkout repo, install NPM dependencies, run app in dev mode.
  2. Repeatedly press the main button on screen that increments count
  3. Watch console output and read description provided.
  4. Check the source code

What is expected?

All three provided services are injected successfully

What is actually happening?

Some of the provided services are injected as undefined


The problem appears to be this change, which interferes with how @ProvideReactive/@InjectReactive decorators work (nested __reactiveInject__ object).

Since vue-property-decorator is now deprecated and Vue 2 support is ending soon I'm not sure how feasible the fix would be. For now we're sticking with 2.7.13 before we can migrate to Vue 3.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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