Known Filters

These are the known callback hooks in the system:

System App

bluerain.system.app

This hook gives the ability to modify the main System App component. This can be used to do things like wrapping the SystemApp in a HOC.

Parameters:

Returns:

Example:

This example wraps the System App with a Redux provider by using a withRedux higher order component (HOC).

import BR from '@blueeast/bluerain-os';
import withRedux from './withRedux';

BR.Filters.set(
    'bluerain.system.app','AddReduxToSystemApp', 
    (App) => {
        return withRedux(App);
    }
);

bluerain.system.app.schema

If you would rather modify the structure of the SystemApp itself, you can hook into it's JSON schema right before it is converted into a React Component at runtime.

Parameters:

Returns:

bluerain.system.routes

This hook gives the ability to modify system routes JSON schema. This is very useful for adding or modifying pages and routes.

Parameters:

Returns:

System Lifecycle Events

The following system lifecycle events are listed in the sequence of their execution.

bluerain.system.boot.start

This hook is executed at the start of the boot process.

bluerain.system.configurations.loaded

This hook is executed after all configurations are loaded.

bluerain.system.components.registered

This hook is executed when all system react components are registered.

bluerain.system.plugins.registered

This hook is executed when all plugins are registered.

bluerain.system.plugins.initialized

This hook is executed when all plugins are initialized.

bluerain.system.apps.registered

This hook is executed when all apps are registered.

bluerain.system.apps.initialized

This hook is executed when all apps are initialized.

bluerain.system.initialized

This hook is executed when initialization process is complete.

bluerain.system.boot.end

This hook is executed at the end of the boot process.

Last updated