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:
| Provider | Description |
|---|---|
| ApiProvider | Provides API client context to all child components using the ONLYOFFICE Apps API SDK. |
| ErrorProvider | Catches what the subtree throws while rendering and shows something in its place. |
| ThemeProvider | Resolves the light, dark or system theme and writes it onto the document for every component to read. |
| TranslationProvider | Installs the i18next instance the eleven components with labels of their own read from. |