From 43e691aaa54ea669963eafd24c7556a5f25b23f6 Mon Sep 17 00:00:00 2001 From: George Svarovsky Date: Sun, 10 Dec 2023 15:01:37 +0000 Subject: [PATCH] Minor: fixed workaround for todomvc demo & minified --- package.json | 2 +- src/rx/index.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 44069c0..804d6d5 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "scripts": { "link-locals": "npm link ../m-ld-spec ../json-rql ../typedoc-theme", "clean": "rm -rf ext _site", - "build": "npm run clean && jest --silent --runInBand && tsc && typedoc && tsup", + "build": "npm run clean && jest --silent --runInBand && tsc && typedoc && tsup --minify", "dev": "concurrently -r -k \"jest --watch --silent --runInBand\" \"tsc --watch\"", "dev+log": "jest --watch --runInBand", "compliance": "tsc --incremental && node compliance/test.js", diff --git a/src/rx/index.ts b/src/rx/index.ts index 376951e..b54f6cf 100644 --- a/src/rx/index.ts +++ b/src/rx/index.ts @@ -1,4 +1,4 @@ -import { asapScheduler, Observable, observeOn } from 'rxjs'; +import { asyncScheduler, Observable, observeOn } from 'rxjs'; import type { GraphSubject, Iri, MeldClone, MeldReadState, MeldUpdate } from '..'; import { updateSubject } from '..'; import { enablePatches, produceWithPatches } from 'immer'; @@ -46,7 +46,7 @@ export function watchQuery( }).pipe( takeUntilComplete(meld.status), // TODO: workaround: live lock throws due to overlapping states - observeOn(asapScheduler) + observeOn(asyncScheduler) ); }