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 calling the server with a ServerAsyncFunction, there's a possibility that your middleware may not propagate your request and finish it. For a client that is awaiting the promise's fate, the promise never settles.
This can be reproduced by making a middleware that rejects all requests and hooking a :finally() method to your promise. It will never reach it.
The text was updated successfully, but these errors were encountered:
I am currently on vorlias/[email protected] on Wally. Here is an example::
Client sided code:
UseItem:CallServerAsync()
:andThen(function(networkResponse: Types.NetworkResponse)
ifnetworkResponse.Success==falsethenwarn(networkResponse.Response)
-- Let's rollback the state, so the item is back in the inventory, since the server didn't accept it.props.addItem(item)
endend)
:finally(function()
print("settled")
end)
An error is always returned by my middleware and next() is never called, for an easy repro case. My :finally() method that is attached to my promise is never called, and 'settled' never prints.
When calling the server with a ServerAsyncFunction, there's a possibility that your middleware may not propagate your request and finish it. For a client that is awaiting the promise's fate, the promise never settles.
This can be reproduced by making a middleware that rejects all requests and hooking a :finally() method to your promise. It will never reach it.
The text was updated successfully, but these errors were encountered: