Skip to content

pollInterval reactivity #453

Closed
Closed
@joelmandell

Description

@joelmandell

Hey!
I am trying to define pollInterval on a query to a property on the data object.

        runningTasks: {
            query: gql`{          
               runningTasks {
                    done
                    meta
                    status
                    information
                    err
                }
            }`,
            pollInterval: this.poll,
            fetchPolicy:'network-only',
        },

But I get this error:

"Cannot read property 'poll' of undefined"

What am I doing wrong?

Metadata

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