[HIGH] Stabilize AuthContext provider value - prevent consumer re-render cascade #34
Labels
No labels
blocked:needs-human
blocked:verify-failed
bug
feature-request
quickfix
security/high
security/medium
test-coverage
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/subvault#34
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Location:
src/contexts/AuthContext.tsx:155-172Problem: Provider
valueobject is recreated as a new inline object literal on every render. AlluseAuth()consumers re-render unconditionally.Impact: Unnecessary re-render cascade across the entire auth-dependent component tree on every state change.
Fix:
Effort: ~30 mins