Skip to content

@vue/apollo-option fails during ssr #1424

@Csszabi98

Description

@Csszabi98

Describe the bug
When @vue/apollo-option mixin is being called on the server the patching of the render function fails as
the code of the library refers to the vue render function incorrectly. During ssr the render function of a vue
component is called "ssrRender" rather than "render".

Problematic code piece

To Reproduce
Steps to reproduce the behavior:

  1. Run any app with @vue/apollo-option with a production build (vite preview)
  2. Open a page which uses apollo during ssr.

Expected behavior
The patching of the cleanup function should not fail.

Versions
vue: 3.2.37
vue-apollo: 4.0.0-alpha.20
@apollo/client: 3.6.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions