Skip to content

🐛(service-worker) Fix useOffline Maximum update depth exceeded #1196

New issue

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

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

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 21, 2025

Conversation

AntoLC
Copy link
Collaborator

@AntoLC AntoLC commented Jul 17, 2025

Purpose

Sentry was reporting a "Maximum update depth exceeded" error coming from the useOffline hook.

Proposal

We updated the hook to avoid mutation. Seems to impact mainly edge browsers.

@AntoLC AntoLC self-assigned this Jul 17, 2025
@AntoLC AntoLC added bug Something isn't working frontend SW Service worker labels Jul 17, 2025
@AntoLC AntoLC requested a review from lunika July 17, 2025 14:47
@AntoLC AntoLC force-pushed the fix/isoffline-loop branch from 797b872 to 0b86c5f Compare July 17, 2025 14:48
Sentry was reporting a "Maximum update depth exceeded" error
comming from the `useOffline` hook. We updated the hook to
avoid mutation. Seems to impact mainly edge browsers.
@AntoLC AntoLC force-pushed the fix/isoffline-loop branch from 0b86c5f to 5a23c97 Compare July 21, 2025 14:06
@AntoLC AntoLC merged commit 5a23c97 into main Jul 21, 2025
21 of 22 checks passed
@AntoLC AntoLC deleted the fix/isoffline-loop branch July 21, 2025 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend SW Service worker
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants