Skip to Content

beforeStoreInit Method

An optional hook that runs before the store is initialized

API

beforeStoreInit?(): void;

Example

import {emitter, Store} from '@bitfiber/rx'; class StoreWithHook extends Store { start = emitter<void>(); beforeStoreInit(): void { // Runs some logic before the store is initialized } }
Last updated on