🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

react-rx

Package Overview
Dependencies
Maintainers
62
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-rx - npm Package Compare versions

Comparing version

to
4.1.0-canary.1

7

dist/index.js

@@ -27,3 +27,5 @@ import { c } from "react-compiler-runtime";

}
let t0, t1;
let t0;
console.count("useMemo");
let t1;
$[0] !== observable ? (t1 = cache.get(observable), $[0] = observable, $[1] = t1) : t1 = $[1];

@@ -33,2 +35,3 @@ const instance = t1;

$[2] !== instance.observable ? (t2 = (onStoreChange) => {
console.count("subscribe");
const subscription_0 = instance.observable.subscribe(onStoreChange);

@@ -41,3 +44,3 @@ return () => {

$[4] !== instance.error || $[5] !== instance.snapshot ? (t3 = () => {
if (instance.error)
if (console.count("getSnapshot"), instance.error)
throw instance.error;

@@ -44,0 +47,0 @@ return instance.snapshot;

{
"name": "react-rx",
"version": "4.1.0-canary.0",
"version": "4.1.0-canary.1",
"description": "React + RxJS = <3",

@@ -5,0 +5,0 @@ "keywords": [

@@ -72,2 +72,3 @@ import {useMemo, useSyncExternalStore} from 'react'

const store = useMemo(() => {
console.count('useMemo')
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion

@@ -77,2 +78,3 @@ const instance = cache.get(observable)!

subscribe: (onStoreChange: () => void) => {
console.count('subscribe')
const subscription = instance.observable.subscribe(onStoreChange)

@@ -84,2 +86,3 @@ return () => {

getSnapshot: () => {
console.count('getSnapshot')
if (instance.error) {

@@ -86,0 +89,0 @@ throw instance.error

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet