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

feat: changing API urls does not need the app refresh #173

Merged
merged 5 commits into from
Aug 20, 2021

Conversation

vojtechsimetka
Copy link
Contributor

@vojtechsimetka vojtechsimetka commented Aug 18, 2021

Resolves #40
Resolves #56

TODO:

  • Clear the interval and start new one with updated API values
  • Error handling when the Bee or the BeeDebug class is null (incorrect URL)
  • Refactor refresh function to Promise.allSettled so that error in the first API calls does not prevent subsequent API calls

@vojtechsimetka vojtechsimetka marked this pull request as ready for review August 19, 2021 14:40
import type { ReactElement } from 'react'
import { beeDebugApi } from '../services/bee'
import { ReactElement, useContext } from 'react'
import { Context as SettingsContext } from '../providers/Settings'

import WDModal from '../components/WDModal'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be used in both DepositModal and WithdrawModal so it seems to me that it would be better to call WithdrawDepositModal instead of WDModal

@vojtechsimetka vojtechsimetka merged commit d6d03bf into master Aug 20, 2021
@vojtechsimetka vojtechsimetka deleted the feat/settings-provider branch August 20, 2021 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants