Skip to content

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

Closed as not planned

Description

Environment


  • Operating System: Linux
  • Node Version: v16.14.2
  • Nuxt Version: 3.0.0-rc.13
  • Nitro Version: 0.6.1
  • Package Manager: npm@7.17.0
  • 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions