Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix/apollo client spamming infinite requets on failure #450

Merged
merged 3 commits into from
Nov 11, 2023
Merged

Fix/apollo client spamming infinite requets on failure #450

merged 3 commits into from
Nov 11, 2023

Conversation

schroda
Copy link
Collaborator

@schroda schroda commented Nov 11, 2023

No description provided.

Apollo client is, for whatever reason, considering it a new hook call when passing an abort controller to be passed to the actual request.
On request failures this then causes infinite requests due to it being a new hook call.
This was missed and started causing issues after the changes of 60429d9.
Due to the changes, the component did not re-render unnecessarily which caused the component not to re-render with the fetched data
The state was never reset, thus, in case of an error, the initial pages fetch was never triggered again
@schroda schroda merged commit 345fbcb into Suwayomi:master Nov 11, 2023
@schroda schroda deleted the fix/apollo_client_spamming_infinite_requets_on_failure branch November 11, 2023 22:43
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant