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

Can't get value from data in production mode #2300

Closed
dxvladislavvolkov opened this issue Oct 4, 2020 · 2 comments
Closed

Can't get value from data in production mode #2300

dxvladislavvolkov opened this issue Oct 4, 2020 · 2 comments
Labels
has workaround A workaround has been found to avoid the problem 🐞 bug Something isn't working

Comments

@dxvladislavvolkov
Copy link

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.

@posva posva added 🐞 bug Something isn't working has workaround A workaround has been found to avoid the problem labels Oct 5, 2020
@posva
Copy link
Member

posva commented Oct 5, 2020

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

@edison1105
Copy link
Member

edison1105 commented Oct 7, 2020

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

@github-actions github-actions bot locked and limited conversation to collaborators Nov 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
has workaround A workaround has been found to avoid the problem 🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants