We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.5.13
https://stackblitz.com/edit/github-ugyyhuvm?file=components%2FHelloWorld.vue
Is this a regression ? I have a very simple store that export an hardcoded user object.
user
I added this to my component:
const store = useAuthStore(); const { user } = storeToRefs(store); console.log(user); console.log(user, user.value);
The first console.log is undefined. The second one is not:
Ref<undefined> Ref<Object>, Reactive<Object>
console.log(user); alone should return Ref<Object>.
console.log(user);
Ref<Object>
console.log(user); returns Ref<undefined>.
Ref<undefined>
System: OS: macOS 15.3.1 CPU: (8) arm64 Apple M1 Pro Memory: 2.34 GB / 32.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 20.18.0 - ~/.nvm/versions/node/v20.18.0/bin/node npm: 10.8.2 - ~/.nvm/versions/node/v20.18.0/bin/npm Browsers: Chrome: 133.0.6943.127 Chrome Canary: 135.0.7035.0 Edge: 133.0.3065.82 Safari: 18.3 Safari Technology Preview: 18.2 npmPackages: vue: latest => 3.5.13
No response
The text was updated successfully, but these errors were encountered:
Relates to vuejs/pinia#2920
Sorry, something went wrong.
minimal reproduction
console.log(user)
console.log(user, user.value)
Ref<Object>, Reactive<Object>
Successfully merging a pull request may close this issue.
Vue version
3.5.13
Link to minimal reproduction
https://stackblitz.com/edit/github-ugyyhuvm?file=components%2FHelloWorld.vue
Steps to reproduce
Is this a regression ?
I have a very simple store that export an hardcoded
user
object.I added this to my component:
The first console.log is undefined.
The second one is not:
What is expected?
console.log(user);
alone should returnRef<Object>
.What is actually happening?
console.log(user);
returnsRef<undefined>
.System Info
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: