From 466175a0660f33c95b79c47b113e0c33b115e582 Mon Sep 17 00:00:00 2001 From: Daniel Steigerwald Date: Sun, 19 Nov 2023 02:02:32 +0100 Subject: [PATCH] Remove dev comment --- packages/evolu-common-web/src/PlatformLive.ts | 1 - packages/evolu-common/src/Evolu.ts | 1 - packages/evolu-common/src/Platform.ts | 1 - 3 files changed, 3 deletions(-) diff --git a/packages/evolu-common-web/src/PlatformLive.ts b/packages/evolu-common-web/src/PlatformLive.ts index 2ef0ebd7e..ce6cb6db4 100644 --- a/packages/evolu-common-web/src/PlatformLive.ts +++ b/packages/evolu-common-web/src/PlatformLive.ts @@ -45,7 +45,6 @@ export const PlatformNameLive = Layer.succeed( : "server", ); -// TODO: Move to @evolu/react and make effectul. export const FlushSyncLive = Layer.succeed(FlushSync, flushSync); export const SyncLockLive = Layer.effect( diff --git a/packages/evolu-common/src/Evolu.ts b/packages/evolu-common/src/Evolu.ts index 321be2ad7..da903593c 100644 --- a/packages/evolu-common/src/Evolu.ts +++ b/packages/evolu-common/src/Evolu.ts @@ -309,7 +309,6 @@ const OnQueryLive = Layer.effect( return; } - // TODO: yield* _(flushSync(rowsStore.setState(nextState))) flushSync(() => rowsStore.setState(nextState).pipe(Effect.runSync)); yield* _(onCompletes.complete(onCompleteIds)); }), diff --git a/packages/evolu-common/src/Platform.ts b/packages/evolu-common/src/Platform.ts index f2756d0c9..d4777f8d7 100644 --- a/packages/evolu-common/src/Platform.ts +++ b/packages/evolu-common/src/Platform.ts @@ -8,7 +8,6 @@ export type PlatformName = export const PlatformName = Context.Tag(); -// TODO: Effect API export type FlushSync = (callback: () => void) => void; export const FlushSync = Context.Tag();