Skip to content

Commit

Permalink
fix #1917 - hydration error during streaming
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansolid committed Oct 18, 2023
1 parent 654e2c0 commit 1f0226e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/long-swans-bow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"solid-js": patch
---

fix #1917 for real this time
2 changes: 1 addition & 1 deletion packages/solid/src/render/Suspense.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export function Suspense(props: { fallback?: JSX.Element; children: JSX.Element
if (sharedConfig.context && sharedConfig.load) {
const key = sharedConfig.context.id + sharedConfig.context.count;
let ref = sharedConfig.load(key);
if (ref && (typeof ref !== "object" || !("value" in ref))) p = ref;
if (ref && (typeof ref !== "object" || ref.status !== "success")) p = ref;
if (p && p !== "$$f") {
const [s, set] = createSignal(undefined, { equals: false });
flicker = s;
Expand Down

0 comments on commit 1f0226e

Please sign in to comment.