Pending in response for nested defers #83
robrichard
announced in
Architectural Decision Records
Replies: 1 comment 4 replies
-
Since we will rely on the absence of a "pending" object to indicate that a defer has been inlined. I think it will be important for clients that we send the "pending" object in the same response that contains the data that the pending path points to. Otherwise, how can a client know how long it needs to wait to determine if a defer is being executed or has been inlined? This would make |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Given the following example:
In #80 we decided that the defer with label "Inner" must not be sent before the defer with the label "Outer". This discussion is to decide how the associated "pending" fields may be sent.
Is this a valid response?
Response Example 1
Alternatively, is this also a valid response?
Response Example 2
I think that even though the defer with label "Inner" must be sent after the defer with the label "Outer", we should either allow the "pending" to be sent earlier, or sent in the same response where the defer is completed. If those are not allowed, the server must split the response into multiple payloads, which could cause unnecessary client re-renders.
Response Example 3
Beta Was this translation helpful? Give feedback.
All reactions