Skip to content

watchQuery(...).map fails #2788

@kamranayub

Description

@kamranayub

Intended outcome:

Trying to map/transform results before subscribing to ObservableQuery.

Actual outcome:

Error in zen-observable map function,

TypeError: Cannot read property 'variables' of undefined
at new ObservableQuery 

I believe because it's trying to do new ObservableQuery({ next, error, complete }) which is not how the ObservableQuery works.

How to reproduce the issue:

https://codesandbox.io/s/72j58qln6x

Version

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