New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@react-rxjs/utils

Package Overview
Dependencies
Maintainers
2
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-rxjs/utils - npm Package Versions

23

0.9.7

Diff
voliva
published 0.9.7 •

Changelog

Source

0.9.7 (2022-06-14)

  • Fix Subscribe error on immediate unmount when running in React18 StrictMode
voliva
published 0.9.6 •

Changelog

Source

utils@0.9.6

  • fix(selfDependent): prevent subject from being closed after unsubscription (#283)
josepot
published 0.9.5 •

Changelog

Source

0.9.5 (2022-04-11)

  • upgrade dependencies (React 18)
josepot
published 0.9.4 •

Changelog

Source

0.9.4 (2022-04-04)

  • utils: toKeySet()

Operator that turns an Observable<KeyChanges<K>> into an Observable<Set<K>>

  • fix useStateObservable on StateObservables that emit synchronously without default value.
  • fix partitionByKey not emitting synchronously when a new group came in.
voliva
published 0.10.0-alpha.1 •
voliva
published 0.10.0-alpha.0 •
josepot
published 0.9.3 •

Changelog

Source

0.9.3 (2022-03-30)

  • utils: Improve performance of 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.

  • fix Subscribe running in react18 StrictMode (#249)
josepot
published 0.9.2 •

Changelog

Source

0.9.2 (2022-03-29)

  • fix React Native build
josepot
published 0.9.1 •

Changelog

Source

0.9.1 (2022-03-27)

  • fix types for DefaultedStateObservable
  • fix compile error on Next.js 12
josepot
published 0.9.0 •

Changelog

Source

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$);

  ...
}