Skip to main content

CoreAppProps

Properties

(Mandatory properties are in bold)
PropertiesTypeDescription
settingsAppSettings | Promise<AppSettings>Settings is a object usually defined in the file src/settings.ts
Data defined in settings.ts is available throughout the application and contains configuration data.
More info here
Additional properties for advanced use cases
PropertiesTypeDescription
ErrorBoundaryComponentComponentType<ErrorBoundaryComponentProps>The component displayed when an error occurs during the rendering phase

Defaults to: no error boundary component
i18nNsstring[]More info here

Defaults to: undefined
initialLocalestringProperty to indicate the language to be used by default

Defaults to: undefined
initialStateAnyState | Promise<AnyState>The initial state passed to the Redux store when it is created

Defaults to: undefined
LoadingComponentElementTypeA component expected by <Suspense> (used to display a loading indicator)

Defaults to: <DefaultLoadingComponent /> that displays "Loading..."
servicesClass<default<AnyState>>[]A list of services that will be available globally in the application.
More info here
storeAppStore<any, AnyAction>A standard Redux store, but created via the helper createReduxStore from onekijs
The store must be created via this helper so onekijs can control it

Defaults to: A store created by <App/> (recommended)
translationsAnonymousObject<AnonymousObject<string>>An object containing the translations
More info here

Defaults to: undefined