Skip to main content

Providers

The providers an application mounts above the components. ThemeProvider and TranslationProvider are required -- without them components render unstyled and without text -- and ErrorBoundary catches a render failure below it.

Overview​

The following components are available:

ProviderDescription
ApiProviderProvides API client context to all child components using the ONLYOFFICE Apps API SDK.
ErrorProviderCatches what the subtree throws while rendering and shows something in its place.
ThemeProviderResolves the light, dark or system theme and writes it onto the document for every component to read.
TranslationProviderInstalls the i18next instance the eleven components with labels of their own read from.