Skip to content

Commit fbfe5f6

Browse files
committed
reset awaited
1 parent 54445ec commit fbfe5f6

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

packages/solid-router/src/awaited.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,7 @@ export function Await<T>(
3030
children: (result: T) => SolidNode
3131
},
3232
) {
33-
const [resource] = Solid.createResource(
34-
() => defer(props.promise),
35-
// Simple passthrough - just return the promise for Solid to await
36-
(p) => p,
37-
{
38-
deferStream: true,
39-
},
40-
)
33+
const [resource] = Solid.createResource(() => props.promise)
4134

4235
return (
4336
<Solid.Show fallback={props.fallback} when={resource()}>

0 commit comments

Comments
 (0)