Skip to content

Commit

Permalink
Remove dev comment
Browse files Browse the repository at this point in the history
  • Loading branch information
steida committed Nov 19, 2023
1 parent 323436f commit 466175a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion packages/evolu-common-web/src/PlatformLive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
1 change: 0 additions & 1 deletion packages/evolu-common/src/Evolu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}),
Expand Down
1 change: 0 additions & 1 deletion packages/evolu-common/src/Platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export type PlatformName =

export const PlatformName = Context.Tag<PlatformName>();

// TODO: Effect API
export type FlushSync = (callback: () => void) => void;

export const FlushSync = Context.Tag<FlushSync>();
Expand Down

0 comments on commit 466175a

Please sign in to comment.