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:
Name
Type
Description
SystemApp
React.Component
The main system app component.
Returns:
Name
Type
Description
SystemApp
React.Component
The main system app component.
Example:
This example wraps the System App with a Redux provider by using a withRedux
higher order component (HOC).
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:
Name
Type
Description
schema
Object
This is the json schema structure of the system app. This schema is passed to the parseJsonSchema
method to generate react components after callback execution.
Returns:
Name
Type
Description
schema
Object
This is the json schema structure of the system app. This schema is passed to the parseJsonSchema
method to generate react components after callback execution.
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:
Name
Type
Description
routes
Object
This is the json schema structure of the system routes. This schema is passed to the parseJsonSchema
method to generate react components after callback execution.
Returns:
Name
Type
Description
routes
Object
This is the json schema structure of the system routes. This schema is passed to the parseJsonSchema
method to generate react components after callback execution.
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