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

Upon reconnecting, the network icon stays red #554

Open
jeroenptrs opened this issue Sep 18, 2018 · 5 comments
Open

Upon reconnecting, the network icon stays red #554

jeroenptrs opened this issue Sep 18, 2018 · 5 comments
Labels
bug Something isn't working community issue Open for community contributions

Comments

@jeroenptrs
Copy link
Contributor

jeroenptrs commented Sep 18, 2018

Expected Behavior

Icon goes back to green

Current Behavior

Icon stays red

Steps to Reproduce

  1. Connect
  2. internet off and back on
  3. See new blocks coming in
  4. Icon stays red

Possible Solution

Additional context

Your Environment

  • nOS Client version used: dev branch
  • Environment name and version
    • Node version:
    • NPM version:
    • Yarn version:
  • Operating System and version (desktop or mobile):
@jeroenptrs jeroenptrs added bug Something isn't working community issue Open for community contributions labels Sep 18, 2018
@mhuggins
Copy link
Contributor

We're only polling every 10 seconds. Did it still stay red after 10+ seconds of waiting?

@jeroenptrs
Copy link
Contributor Author

Yerp, it stayed red even when new blocks were coming in

@mhuggins
Copy link
Contributor

Ahh, I know why. We're always passing the action data & error to the component. This, combined with the fact that spunky doesn't clear out prior errors/data unless a new error/data takes its place, means that old errors will still be passed to that tooltip component.

With that in mind, we need to modify the behavior to use the withProgress HOC, which can conditionally pass the data (if progress is not FAILED) or error (if progress is FAILED) to the component.

@DalderupMaurice
Copy link
Member

Isn't this fixed rn? @mhuggins

@DalderupMaurice
Copy link
Member

Ah nvm - tested it, disconnecting and reconnecting internet connection doesn't reconnect to the nodes. Can't open the wallet afterwards and the icon remains red besides new blocks coming in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working community issue Open for community contributions
Projects
None yet
Development

No branches or pull requests

3 participants