Skip to content

Inject/Provide is not reactive #7017

@ralphchristianeclipse

Description

@ralphchristianeclipse

Version

2.5.3

Reproduction link

https://codesandbox.io/s/7o2qp4l3z6

Steps to reproduce

Parent Component

    provide() {
      let reactive = {};

      Object.defineProperties(reactive, {
        challenge: {
          get: () => this.challenge
        }
      });

      return reactive;
    },

Child Component

inject: ["challenge"]

What is expected?

The challenge property should change when its parent this.challenge changes on the proxy

What is actually happening?

Not changing at all


The link provided is just an example how to reimplement what i'm really doing but that is the same code that i use

any ideas?

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