Comparing version 4.1.0-canary.3 to 4.1.0-canary.4
@@ -29,5 +29,3 @@ import { c } from "react-compiler-runtime"; | ||
$[0] !== observable ? (t0 = (onStoreChange) => { | ||
const instance = cache.get(observable); | ||
console.count("subscribe"); | ||
const subscription_0 = instance.observable.subscribe(onStoreChange); | ||
const subscription_0 = cache.get(observable).observable.subscribe(onStoreChange); | ||
return () => { | ||
@@ -41,3 +39,3 @@ subscription_0.unsubscribe(); | ||
const instance_0 = cache.get(observable); | ||
if (console.count("getSnapshot"), instance_0.error) | ||
if (instance_0.error) | ||
throw instance_0.error; | ||
@@ -44,0 +42,0 @@ return instance_0.snapshot; |
{ | ||
"name": "react-rx", | ||
"version": "4.1.0-canary.3", | ||
"version": "4.1.0-canary.4", | ||
"description": "React + RxJS = <3", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -73,5 +73,3 @@ import {useCallback, useSyncExternalStore} from 'react' | ||
(onStoreChange: () => void) => { | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
const instance = cache.get(observable)! | ||
console.count('subscribe') | ||
const subscription = instance.observable.subscribe(onStoreChange) | ||
@@ -88,5 +86,3 @@ return () => { | ||
() => { | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
const instance = cache.get(observable)! | ||
console.count('getSnapshot') | ||
if (instance.error) { | ||
@@ -93,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
44544
601