Component QueryRenderer only need to render once?
Even variables changed?
hey @xyy94813 the QueryRenderer itself wont re-render, but when you pass new variables we will re-fetch the query with the new variable and call your render prop again; does that make sense?
thx.
But it don't re-fetch after i upgrade relay to v1.6.0 in my project.
The problem is resolved.
I forget to upgrade React-Dom to 16.3.0 ...
I have the Base Component which will have a QueryRenderer to fetch data for header, food items, filtering options. In the render method, i would like to display the
@ankit5174 you need to use a refetch container in this case, instead of a QR
@sibelius I assume FoodList will be the refetch Container. If that is so then this.props.relay.refetch of FoodList will be available in the same component. But i need to make the refetch call from
Most helpful comment
The problem is resolved.
I forget to upgrade React-Dom to 16.3.0 ...