Skip to content

fix: inline checkSession into useEffect to fix stale closure#114

Open
kush-mehra1 wants to merge 1 commit into
madanrajsagar:mainfrom
kush-mehra1:fix/issue-72-auth-useeffect-deps
Open

fix: inline checkSession into useEffect to fix stale closure#114
kush-mehra1 wants to merge 1 commit into
madanrajsagar:mainfrom
kush-mehra1:fix/issue-72-auth-useeffect-deps

Conversation

@kush-mehra1

Copy link
Copy Markdown

Fixes #72

AuthContext.checkSession referenced in useEffect with empty deps — the closure captures a stale reference. Inlined the check into useEffect directly so the effect has the actual function body.

GSSOC 2026 contribution

@kush-mehra1

Copy link
Copy Markdown
Author

GSSOC 2026 contribution. could a maintainer add the gssoc:approved label and a difficulty level? thanks.
github profile: https://github.com/kush-mehra1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AuthContext checkSession useEffect has dependency issue

2 participants