This is an internal documentation. There is a good chance you’re looking for something else. See Disclaimer.

Architecture

app-extensions vs. tocco-util

Both are core packages that provide helper- and util-functions for other packages.

  • app-extensions

    • bigger features that are used in multiple apps

      • e.g. form, notifications

    • has dependency to redux, tocco-util and tocco-ui

  • tocco-util

    • small independent helper functions

      • e.g. cache, logger

    • has no dependencies

addToStore

Name

Description

Docs

actionEmitter

Dispatches actions to the parent app via emitAction event.

README actionEmitter

actions

For rendering action buttons and invoke actions.

README actions

cache

Clears cache on initialization. (Usually in use for standalone apps, widgets and actions.)

README cache

errorLogging

To log errors and use ErrorBoundary.

README errorLogging

externalEvents

Dispatches external events / callbacks (such as onSuccess, onError, onCancel).

README externalEvents

form

To use detail form actions / sagas for redux-form.

README form

formData

To use form data and form features such as remote fields.

README formData

keyDown

To use KeyDownWatcher and register shortcuts.

README keyDown

login

Checks session and connect to socket.

README login

notification

Dispatch actions to show notifications and confirmation dialogs.

README notification

reports

To load reports.

README reports

templateValues

To use template values to prefill form.

README templateValues