Skip to content

lumilio-web / contexts/FetchContext / useAssetsContext

Function: useAssetsContext()

useAssetsContext(): AssetsContextValue

Defined in: contexts/FetchContext.tsx:306

Assets Context Hook

Primary hook for components to interact with the assets context. Provides type-safe access to both state and actions with automatic error handling.

Returns

AssetsContextValue

Combined assets state and actions

Throws

Error if used outside of AssetsProvider

Since

1.0.0

See

  • AssetsProvider for the context provider
  • AssetsContextValue for the complete API reference