Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finance, Tokens, Voting: guard accesses to network.type #1026

Merged
merged 2 commits into from
Oct 24, 2019

Conversation

sohkai
Copy link
Contributor

@sohkai sohkai commented Oct 24, 2019

Fixes #1014.

It looks like we get unlucky sometimes, where @aragon/api-react's hooks are not hydrated with data fast enough and their default state is used.

This change adds protections to accessing network.type from useNetwork(), to avoid causing the apps to error immediately.

@sohkai sohkai merged commit 52243a9 into master Oct 24, 2019
@sohkai sohkai deleted the guard-network-check branch October 24, 2019 01:00
MickdeGraaf pushed a commit to MickdeGraaf/aragon-apps that referenced this pull request Jan 28, 2020
ramilexe pushed a commit to ConsiderItDone/aragon-apps that referenced this pull request Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tokens: null network prevents execution
1 participant