Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ahumellihuk opened this issue Apr 20, 2023 · 0 comments

Comments

@ahumellihuk
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant