BlueRain
Github
  • 💧Introduction
  • Overview
    • 📲Quick Start
    • 🎛️Configuration with bluerain.js
    • 🎡Lifecycle Events
    • 🛣️Roadmap
  • Key Concepts
    • 🔌Plugins
      • Developing an Analytics Plugin
      • Developing a Logger Plugin
      • Developing a Theme Plugin
    • 🎣Hooks
    • 🎁Components
    • 📦BlueRain Modules
    • 🎛️Configs
    • 📈Analytics
    • 📔Logger
    • 🎨Themes
      • Installation
      • Consuming Selected Theme
      • Customise Themes
      • Customise Components
      • Theme Configs
      • Theme Structure
    • Registry
  • Guides
    • 🗿Icons
    • 🛂Migrating from V3
  • Components
    • Typography
    • Icons
      • Icon
      • DynamicIcon 📌
      • PluginIcon 📌
  • CLI
    • Expo
    • Web
    • Storybook (Web)
    • Storybook Native (Expo)
Powered by GitBook
On this page
  • Hooking into config updates
  • Subscribing to Config updates
  1. Key Concepts

Configs

BlueBase comes with a built-in app configuration system. This is a registry where you can store configurations in key value pairs, as well as subscribe to changes.

Hooking into config updates

It is possible to hook into any configuration before it is saved into the registry by using the bluebase.config.beforeSave hook.

await BB.Hooks.register(
	'bluebase.config.beforeSave', 
	{
		handler: (config: { key: string, value: string}) => {
			// Do something here
		},
	}
);

Subscribing to Config updates

It is also possible to subscribe to

PreviousBlueRain ModulesNextAnalytics

Last updated 6 years ago

🎛️