@react-rxjs/utils
Advanced tools
Changelog
0.9.7 (2022-06-14)
Changelog
utils@0.9.6
Changelog
0.9.5 (2022-04-11)
Changelog
0.9.4 (2022-04-04)
toKeySet()
Operator that turns an Observable<KeyChanges<K>>
into an Observable<Set<K>>
Changelog
0.9.3 (2022-03-30)
partitionByKey
with a big number of elements (#232)BREAKING CHANGE: partitionByKey's key stream now returns deltas Observable<KeyChanges<K>>
instead of list of keys Observable<K[]>
. Shouldn't have an impact if the stream was used directly into combineKeys
.
Changelog
0.9.1 (2022-03-27)
Changelog
0.9.0 (2022-03-20)
state()
, useStateObservable()
There's a different way of creating and consuming observables now.
Instead of calling bind
which returns a hook and a shared observable, state()
just returns the shared observable. This can be consumed in the components by using the hook useStateObservable()
.
const [useUser, user$] = bind(fetchUser());
const App = () => {
const user = useUser();
...
}
// Becomes
const user$ = state(fetchUser());
const App = () => {
const user = useStateObservable(user$);
...
}