Перейти к основному содержимому

useMineflow

@mineflow/client-react


@mineflow/client-react / context / useMineflow

Function: useMineflow()

function useMineflow(): MineflowContextValue;

Defined in: client-react/src/context.ts:41

Доступ к контексту SDK (MineflowContextValue: REST-клиент, аутентифицированный fetch, baseUrl, роли).

Returns​

MineflowContextValue

Текущее значение контекста.

Throws​

Error если вызван вне <MineflowProvider>.