0.2.4 #38

Merged
Thilawyn merged 44 commits from next into master 2026-03-16 00:30:17 +01:00
Showing only changes of commit 8dd40d3365 - Show all commits

View File

@@ -34,6 +34,7 @@ class AsyncFetchPostView extends Component.make("AsyncFetchPostView")(function*(
)
}).pipe(
Async.async,
Async.withOptions({ defaultFallback: <Text>Loading post...</Text> }),
Memoized.memoized,
) {}
@@ -50,9 +51,7 @@ const AsyncRouteComponent = Component.make("AsyncRouteView")(function*() {
onValueChange={flow(Array.head, Option.getOrThrow, setId)}
/>
<React.Suspense fallback={<Text>Loading...</Text>}>
<AsyncFetchPost id={id} />
</React.Suspense>
<AsyncFetchPost id={id} />
</Flex>
</Container>
)