name of the limetype
the id of the object
name of the limetype
Optional getLoad the specified limeobject into the state
Optional options: Pick<LoadOptions, "properties">Load objects of the specified limetype into the state
list of objects together with total count of objects
name of the limetype
Optional options: LoadOptionsoptions about the objects to load
Load related objects into the state
list of related objects together with total count of objects
name of the limetype of the owning limeobject
the id of the owning limeobject
name of the property that contain the relations
Optional options: LoadOptionsoptions about the objects to load
Subscribe to state changes with optional transformation and filtering.
The subscription will immediately invoke the callback with the current state (if any), then continue to call it whenever the state changes. The map and filter options allow you to transform and selectively receive updates.
Unsubscribe function - call this to stop receiving updates
// Basic subscription
const unsubscribe = repository.subscribe((state) => {
console.log('State updated:', state);
});
// With transformations
const unsubscribe = repository.subscribe(
(userName) => console.log('User:', userName),
{ map: [(state) => state.user?.name] }
);
Function called with state updates (after map/filter applied)
Rest ...args: unknown[]Optional options: StateOptionsOptional transformations and filters for the subscription
Subscribe to state changes with optional transformation and filtering.
The subscription will immediately invoke the callback with the current state (if any), then continue to call it whenever the state changes. The map and filter options allow you to transform and selectively receive updates.
Unsubscribe function - call this to stop receiving updates
// Basic subscription
const unsubscribe = repository.subscribe((state) => {
console.log('State updated:', state);
});
// With transformations
const unsubscribe = repository.subscribe(
(userName) => console.log('User:', userName),
{ map: [(state) => state.user?.name] }
);
Delete the specified limeobject