You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building apps, a challenging part is not getting a network response straight away. Responses often comes with random delays because network conditions are unstable. Getting responses from actual network conditions in development is an interesting feature because it would allow to design apps with high fidelity conditions: loading states, low-network resilience, flashes, etc.
This is a proposal to support initial network time.
Storing network time in the response
Right now, the response format contains:
Status code
Headers
Response
We could store some metadata in the cache, including the network time:
Status code
Headers
Response
Metadata
Network time
Here is the network information available in the Chrome Dev Tools Network panel:
When building apps, a challenging part is not getting a network response straight away. Responses often comes with random delays because network conditions are unstable. Getting responses from actual network conditions in development is an interesting feature because it would allow to design apps with high fidelity conditions: loading states, low-network resilience, flashes, etc.
This is a proposal to support initial network time.
Storing network time in the response
Right now, the response format contains:
We could store some metadata in the cache, including the network time:
Here is the network information available in the Chrome Dev Tools Network panel:
See explanation
Possible implementation
Bailing out of this feature
We can introduce a new option (e.g.
skipDelays
) that ignores the delays and returns the response straight away.IMO network time should be respected by default.
The text was updated successfully, but these errors were encountered: