Skip to content

fix: avoid stale state usage in useNetwork effect - #601

Merged
devknight-ink merged 2 commits into
inkonchain:mainfrom
Ocheretovich:main
Aug 10, 2026
Merged

fix: avoid stale state usage in useNetwork effect#601
devknight-ink merged 2 commits into
inkonchain:mainfrom
Ocheretovich:main

Conversation

@Ocheretovich

Copy link
Copy Markdown
Contributor

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
@devknight-ink
devknight-ink merged commit 5ad85c4 into inkonchain:main Aug 10, 2026
9 of 13 checks passed
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.

2 participants