I have a question for the following scenario:
If you use the setVariables
method from the relay prop and change the variable in the way, that relay has to retrieve additional data from the server (for example click "load more stories" in the following playground example relay playgorund).
I would expect that after listening to the callbacks readyState
with the values ready = true
and done = true
the props contain the newly fetched information. Like in the playground example, after increasing the numStoriesToLoad
with the initial value 3 by 1 the prop viewer.storyFeed.edges.length
is 4.
What actually happens is, that even after receiving the named callback, the props have still the old value. If this behavior is intentional, how can you chain setVariables
calls which depend on the result of the previous call?