I am seeing an issue when using MockPayloadGenerator.generateWithDefer to generate deferred data in list items. This happens because the path returned in the responses does not contain the index of the list-item.
Example:
A response returns
["x", "y", "z", "edges", "node"]
which should be
["x", "y", "z", "edges", 0, "node"]
Without this, the deferred data is not correctly read into the relay store and list items don't get deferred data.
Tagging @gorodscy as it seems you implemented generating deferred data in Relay quite recently.
Hi,
I am seeing an issue when using
MockPayloadGenerator.generateWithDefer
to generate deferred data in list items. This happens because thepath
returned in the responses does not contain the index of the list-item.Example:
A response returns
["x", "y", "z", "edges", "node"]
which should be
["x", "y", "z", "edges", 0, "node"]
Without this, the deferred data is not correctly read into the relay store and list items don't get deferred data.
Tagging @gorodscy as it seems you implemented generating deferred data in Relay quite recently.