Releases: e-oz/ngx-collection
Releases · e-oz/ngx-collection
3.3.1
Allow getItem()
to accept undefined as input (return type has not been changed).
3.2.2
The second parameter in getItemByPartial() is optional now.
3.2.0
- New state field:
$isBeforeFirstRead: Signal<boolean>
.
Initialized with 'true', will be set to false
after the first execution of read()
, readOne()
, or readMany()
.
It is designed to be used with 'No entries found' placeholders.
effect()
helper was renamed to createEffect()
to don't conflict with Angular's effect()
function.
createEffect()
is still exported as effect()
for backwards compatibility, and as sideEffect()
to don't conflict with NgRx.Store's createEffect()
.
3.1.7
effect()
helper will now resubscribe on errors, so if you forgot to catch an error - it's not an issue anymore.
Also, if a value, passed to the effect, is an Observable, and this observable throws an error, the observable will be resubscribed automatically.
3.1.6
getItem()
and getItemByField()
now accept equalFn
parameter - you can set your own equality check function or set undefined
to use the default one.
3.1.5
- Specialized equality check functions will be used in
getItem()
and getItemByField()
.
- Better documentation and more tests for equality check functions.
3.1.4
- Only update status$ signals when needed.
signalEqual
object is exposed as public API - here you can find functions to use for custom equality checks.
3.1.1
Better equality functions for signals.