Skip to content
This repository was archived by the owner on Apr 13, 2023. It is now read-only.
This repository was archived by the owner on Apr 13, 2023. It is now read-only.

Variables don't mutate after update #138

@gauravtiwari

Description

@gauravtiwari

Hey folks, So, looks like the variables are not reactive, meaning they don't update if they are mutated. For ex, I have this scenario, initially I have set variables like so, variables: { start: 0 } and later when user scrolls to the bottom of the page, I have updated the variables to this in the updateQuery method, variables: { start: this.props.data.variables.start + 20 }. Now, here is the timeline showing the state of the variables object,

screen shot 2016-08-14 at 11 35 54

It seems, it changes the first time, but again reverses to the initial variables object. Is it the desired behaviour? I think it should update with the components state.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions