fix(ios): Add missing request error handling #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why is this added for
capacitor-community#224
Copied solution from this PR:
capacitor-community#225
In our case, we need it on iOS when initializing the app and the device is offline at that moment,
fetchChats
method is triggered but this line is not triggered at all:https://github.com/komed-health/frontend/blob/089bd98560ce0cc79b618f011a464a6939daf32d/src/app/Chat/Chat-Lobby/Shared/Services/chat-lobby.service.ts#L65
And because of that, we have a loading spinner in a chat lobby header even when the device is put back to online.