Subscribe on changes!

Can't get value from data in production mode

avatar
Oct 4th 2020

Version

3.0.0

Reproduction link

https://github.com/dxvladislavvolkov/vue3-issue

Steps to reproduce

  1. Clone the repo
  2. Run npm i
  3. Run npm run build
  4. Run project from the dist folder
  5. Click to button and see the console. You will get an error

What is expected?

I want to get the value from data

What is actually happening?

I get an error when trying to get value


It happens when I have a base component with data and provide. I extend another component with the base component.

avatar
Oct 5th 2020

As a workaround, you can use this.$data.a inside of updated

avatar
Oct 7th 2020

image accessCache is incorrect when next code run. provide() { return { a: this.a } } It should be 1(AccessTypes.DATA)