In the below setup, I am trying to have a query rerun when a user provides a search input, but this does not happen. Using the old graphql syntax, a component wrapped in graphql() would rerun in a similar scenario. Is this intended or am i missing something.
class Wrapper extends React.Component{
state={
search:""
}
render(){
return(
<View><List search={this.state.search} /></View>
)
}
}
const List=props=>(
<Query query={SOME_QUERY} variables={{ search: props.search || null }}>
//... some stuff here
</Query>
)