@rangojs/router 0.0.0-experimental.preview.1774291751 → 0.0.0-experimental.preview.1774295099

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1745,7 +1745,7 @@ import { resolve } from "node:path";
1745
1745
  // package.json
1746
1746
  var package_default = {
1747
1747
  name: "@rangojs/router",
1748
- version: "0.0.0-experimental.preview.1774291751",
1748
+ version: "0.0.0-experimental.preview.1774295099",
1749
1749
  description: "Django-inspired RSC router with composable URL patterns",
1750
1750
  keywords: [
1751
1751
  "react",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rangojs/router",
3
- "version": "0.0.0-experimental.preview.1774291751",
3
+ "version": "0.0.0-experimental.preview.1774295099",
4
4
  "description": "Django-inspired RSC router with composable URL patterns",
5
5
  "keywords": [
6
6
  "react",
@@ -141,24 +141,15 @@ export async function initBrowserApp(
141
141
  initialTheme,
142
142
  } = options;
143
143
 
144
- // Dev-only: create debug channel for React Performance Tracks.
145
- // The debugId was injected into the HTML bootstrap by the SSR handler.
146
- // The client sends a "ready" signal so the server flushes buffered data.
147
- const ssrDebugId = (globalThis as any).__RANGO_DEBUG_ID__ as
148
- | string
149
- | undefined;
150
- const ssrDebugChannel =
151
- ssrDebugId && (import.meta as any).hot
152
- ? createClientDebugChannel(ssrDebugId)
153
- : undefined;
154
-
155
144
  // Load initial payload from SSR-injected __FLIGHT_DATA__
156
- const initialPayload = await deps.createFromReadableStream<RscPayload>(
157
- rscStream,
158
- ssrDebugChannel
159
- ? { debugChannel: ssrDebugChannel, findSourceMapURL }
160
- : undefined,
161
- );
145
+ // Note: debug channel is NOT used for hydration. The WS transport is
146
+ // unreliable during initial page load (JS loads after server finishes
147
+ // rendering, so the "ready" signal arrives too late and chunks are dropped).
148
+ // If createFromReadableStream hangs on a stalled debug stream, the entire
149
+ // app never initializes — blocking all subsequent SPA navigations.
150
+ // Server Component tracks are available for SPA navigations instead.
151
+ const initialPayload =
152
+ await deps.createFromReadableStream<RscPayload>(rscStream);
162
153
 
163
154
  // Extract themeConfig and initialTheme from payload if not explicitly provided
164
155
  // This allows virtual entries to work without importing the router