BITFIBERRx
StoreData SourcesOperatorsAbout
GitHubGitHub
  • Store Intro
  • Emitters
  • States
  • Groups
  • Installation
  • Reference
    • Store
      • initialize
      • complete
      • markAsReady
    • StoreHooks
      • beforeStoreInit
      • afterStoreInit
      • beforeStoreComplete
      • afterStoreComplete
    • emitter
    • Emitter
      • $
      • initialize
      • complete
      • manage
      • emit
      • select
      • zip
      • wait
      • receive
      • transmit
      • effect
      • tap
    • state
    • State
      • $
      • initialize
      • complete
      • manage
      • get
      • set
      • update
      • reset
      • compareBy
      • connect
      • useLazyEmission
      • useLazyEmissionOnce
      • select
      • zip
      • wait
      • receive
      • transmit
      • effect
      • tap
    • Comparison
    • changeDefaultComparison
    • group
    • Group
      • initialize
      • complete
      • markAsReady
    • namedGroup
    • NamedGroup
      • initialize
      • complete
    • asyncGroup
    • AsyncGroup
      • launch
      • success
      • fail
      • finish
      • state
      • initialize
      • complete
      • useCache
    • transmit
  • Angular Extension

On This Page

  • API
  • Example
FeedbackEdit this page
StoreReferenceStoreHooksbeforeStoreInit

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
  }
}
StoreHooksafterStoreInit

Created by Oleksandr Zmanovskyi © 2023-2025.Code licensed under an Apache 2.0 License.Documentation licensed under CC BY 4.0.