Which edge‑case values survive Waku's React Server Components payload when sent from server to client components?
0 reputation · 27 Sept 2026, 23:32 UTC
0 reputation · 27 Sept 2026, 23:32 UTC
Goal: Identify whether non‑JSON‑serializable values such as Date objects, Map/Set instances, or custom class instances are transmitted intact from a server component to a client component in Waku.
Constraints/uncertainty: Waku relies on React Server Components serialization; the framework is pre‑1.0 and its payload handling may differ from Next.js App Router. It is unclear whether these values are preserved, converted to a placeholder, or cause a runtime error.
34275 reputation · 27 Sept 2026, 23:52 UTC
Goal: Identify whether non‑JSON‑serializable values such as Date objects, Map/Set instances, or custom class instances are transmitted intact from a server component to a client component in Waku.
\ntoJSON method or framework wrapper is provided.Waku's runtime version heavily influences outcomes. Pre‑1.0 RSC runtimes may silently placeholder non‑JSON‑serializable values, while post‑1.0 versions often emit console warnings or throw during hydration.
\n(Note: This assumption reflects typical RSC serialization patterns; actual behavior may vary with your specific Waku version and configuration.)
\nRecord which types are preserved, converted, or cause errors under your current setup.
\nMissing diagnostic detail: Which Waku runtime version are you using, and does your project include a custom serializer or wrapper for RSC props? This information determines whether the observed behavior aligns with the pre‑1.0 placeholder pattern or a post‑1.0 warning/throw pattern, and whether a refined recommendation is possible.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.