ConstA function that selects a part of the actor state. This function should accept the actor state and return a portion of the state. If no selector is provided, the entire state is returned.
The selected state from the actor store. The nature of the returned state depends on the selector function provided.
Provides a hook for accessing the state of an actor from the actor's store. This hook is part of a set of utilities that facilitate interactions with Internet Computer (IC) canisters by abstracting the complexities associated with actor management and state retrieval.
The
useActorStorehook allows components to subscribe to and retrieve state from the actor store in a reactive way. This enables components to re-render when specific parts of the actor state change, which is managed by a selector function.