mirror of
https://github.com/codeflash-ai/codeflash-internal.git
synced 2026-05-04 18:25:18 +00:00
## Summary - Fix infinite refetch loop in the dashboard sidebar that fires hundreds of POST+GET requests per second - The `subscriptionFetchRef` was reset in `finally()`, allowing re-entrancy: fetch → `setSubscription` → re-render → ref is `false` → fetch again → infinite loop - Move the ref reset to the effect cleanup function so it only resets when `mode` actually changes ## Note: Auth0 favicon 404 The Auth0 login page at `codeflash-ai.us.auth0.com` returns a 404 for `/favicon.ico`. This is configured in **Auth0 Dashboard > Branding > Universal Login**, not in application code. Upload the Codeflash favicon there to resolve. ## Test plan - [ ] Navigate to dashboard, open Network tab — confirm no repeated POST/GET polling - [ ] Switch between personal/org mode — confirm subscription data still loads correctly - [ ] Verify sidebar subscription usage display still renders |
||
|---|---|---|
| .. | ||
| workflows | ||
| dependabot.yml | ||
| pull_request_template.md | ||