Skip to content

fix: avoid stale state usage in useNetwork effect#601

Open
Ocheretovich wants to merge 1 commit intoinkonchain:mainfrom
Ocheretovich:main
Open

fix: avoid stale state usage in useNetwork effect#601
Ocheretovich wants to merge 1 commit intoinkonchain:mainfrom
Ocheretovich:main

Conversation

@Ocheretovich
Copy link
Copy Markdown

Use functional state update for isAdded inside useEffect to avoid stale state usage and remove the unnecessary dependency on isAdded. This prevents redundant effect executions while keeping the existing behavior unchanged.

@Ocheretovich Ocheretovich requested a review from a team as a code owner March 25, 2026 11:45
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.

1 participant