Readonly
idID of the store.
Readonly
idName of the property used as ID. If not provided, the 'getIdentity' method must be declared.
Emits an event. All associated event listeners registered for the given event name will be invoked asynchronously.
The name of the event.
Rest
...value: Params<StoreEvents<IDType>[Name]>The event value. Passed to all event listeners.
Note: no value can be passed if the event type is void
.
Register event listener for specific events.
name of the event
the event handler callback will be invoked when the event has been emitted
a handle to unregister from the event
Register event listener for any event.
must be "*"
for this overload
the event handler callback will be invoked when any event has been emitted
a handle to unregister from the events
Register event listener for the events listed in eventName
.
Comma separated event names are possible, for example "eventA,eventB"
.
the event name or list of names
the event handler callback
a handle to unregister from the event(s)
Queries the store using the provided query.
Optional
query: ComplexQueryExpressiona query to execute.
Optional
options: QueryOptionsthe query options.
A read only synchronous store.