Skip to Content

initialize Method

Initiates the state.
In most cases, this method will be called automatically by a group or store managing the state, so you generally don’t need to call it manually unless you have a specific reason to do so

@returns this
The current instance of the state, allowing for method chaining

API

initialize(): this;

Example

import {state} from '@bitfiber/rx'; const data = state<number>(10); // Initialize the state data.initialize();
Last updated on