Options
All
  • Public
  • Public/Protected
  • All
Menu

Module providers/LoadingProvider

This file contains mix of React components and hooks useful for obtaining the LoadingContext from any component in the project.

Interfaces

Variables

Functions

Variables

Const Context

Context: Context<undefined | LoadingContext> = React.createContext<LoadingContext | undefined>(undefined)

Definition of React LoadingContext context. Default value is undefined

Functions

Const LoadingProvider

  • LoadingProvider(__namedParameters: object): Element
  • React Component wrapping obtained children with LoadingContext provider, so useLoading can be called from any component in the children subtree. It sets whether the application is currently waiting for response from the blockchain so other actions should be temporarily blocked.

    Parameters

    • __namedParameters: object
      • children: undefined | null | string | number | false | true | object | ReactElement<any, string | function | object> | ReactNodeArray | ReactPortal

    Returns Element

Const useLoading

Generated using TypeDoc