GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(client-runtime): preserve batched preview events · MahirAbbas/t3code@68c1401

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/client-runtime/src/state
    • preview.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/client-runtime/src/state/preview.ts‎

Copy file name to clipboardExpand all lines: packages/client-runtime/src/state/preview.ts
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { WS_METHODS } from "@t3tools/contracts";
2+
import * as Stream from "effect/Stream";
23
import { Atom } from "effect/reactivity";
34

45
import type { EnvironmentRegistry } from "../connection/registry.ts";
@@ -28,6 +29,8 @@ export function createPreviewEnvironmentAtoms<R, E>(
2829
events: createEnvironmentRpcSubscriptionAtomFamily(runtime, {
2930
label: "environment-data:preview:events",
3031
tag: WS_METHODS.subscribePreviewEvents,
32+
// Stream atoms publish only the last value per chunk; every preview event must arrive.
33+
transform: (stream) => stream.pipe(Stream.rechunk(1)),
3134
}),
3235
discoveredServers: createEnvironmentRpcSubscriptionAtomFamily(runtime, {
3336
label: "environment-data:preview:discovered-servers",

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.