Skip to content

Conversation

@yornaath
Copy link
Contributor

@yornaath yornaath commented Jan 21, 2022

Added state for errors and hooks to retrieve them by api provider id:

// New context state
SubstraHooksContext {
  ...
  errorsState: ErrorsState;
  errorsDispatch: Dispatch<ErrorsActions>;
}

// Component Hook
const blockSyncError = useBlockSyncError(apiProviderId);

Copy link
Contributor

@Yuripetusko Yuripetusko left a comment

Choose a reason for hiding this comment

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

lgtm. thanks

@yornaath yornaath requested a review from Yuripetusko January 21, 2022 11:49
@yornaath yornaath merged commit f742efb into master Jan 21, 2022
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.

3 participants