fix: key stale show callbacks
This commit is contained in:
parent
326c70184d
commit
05789d29d2
17 changed files with 110 additions and 49 deletions
|
|
@ -482,6 +482,7 @@ function ServerGate(props: { children: (data: ServerReadyData) => JSX.Element })
|
|||
return (
|
||||
<Show
|
||||
when={serverData.state !== "pending" && serverData()}
|
||||
keyed
|
||||
fallback={
|
||||
<div class="h-screen w-screen flex flex-col items-center justify-center bg-background-base">
|
||||
<Splash class="w-16 h-20 opacity-50 animate-pulse" />
|
||||
|
|
@ -489,7 +490,7 @@ function ServerGate(props: { children: (data: ServerReadyData) => JSX.Element })
|
|||
</div>
|
||||
}
|
||||
>
|
||||
{(data) => props.children(data())}
|
||||
{(data) => props.children(data)}
|
||||
</Show>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue