fix: prevent state updates after unmount in chapters geoLocData fetch#3831
fix: prevent state updates after unmount in chapters geoLocData fetch#3831khushia3 wants to merge 1 commit intoOWASP:mainfrom
Conversation
|
The linked issue must be assigned to the PR author. |
|
Caution Review failedThe pull request is closed. Summary by CodeRabbit
WalkthroughThe PR adds a mounted ref guard to the chapters page's async data fetching effect. A Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|



This PR prevents state updates after component unmount or effect re-run
in the chapters page by adding a safe cancellation pattern to the
geoLocData fetch.
Fixes #3670