Skip to content

getSSRProps has no access to exposed property on the instance #15424

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

Closed
ThornWalli opened this issue Nov 9, 2022 · 1 comment
Closed

getSSRProps has no access to exposed property on the instance #15424

ThornWalli opened this issue Nov 9, 2022 · 1 comment

Comments

@ThornWalli
Copy link

Environment


  • Operating System: Linux
  • Node Version: v16.14.2
  • Nuxt Version: 3.0.0-rc.13
  • Nitro Version: 0.6.1
  • Package Manager: [email protected]
  • Builder: vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/github-wb8yyr?file=app.vue

Describe the bug

I have a directive with which I retrieve a value from the component on the client/server side.

This value exposedProperty is exposed in the setup.

The problem is that I see this value in the client on the instance in the beforeMount of the directive. But server-side the instance is empty in the call of getSSRProps.

To expect here would be in both cases the same output.

image

Additional context

No response

Logs

No response

@danielroe
Copy link
Member

This is upstream Vue 3 SSR behaviour: https://stackblitz.com/edit/github-akfh96.

Would you raise an issue at https://github.com/vuejs/core instead?

@danielroe danielroe closed this as not planned Won't fix, can't repro, duplicate, stale Dec 8, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe transferred this issue from nuxt/framework Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants