Skip to content

3.0.0-beta.14+ doesn't work anymore when used with @Component decorator #333

Closed
@philmueller

Description

@philmueller

From 3.0.0-beta.14 on, the following code results in a TypeError ("Cannot read property 'data' of undefined"):

@Component({
  apollo: {
    allFilms: QUERY_ALL_FILMS,
  },
})
export default class App extends Vue {
  allFilms = []
}

Full minimal reproduction code: https://codesandbox.io/s/ymllyyyx7z
The code works if the dependency in package.json is changed to "vue-apollo": "3.0.0-beta.13".

It seems like #295 (mentioning a043654 as possible root cause) describes a similar problem, but upgrading vue-apollo to the latest version doesn't seem to solve the issue.

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