0.1.8 #11

Merged
Thilawyn merged 233 commits from next into master 2025-04-21 02:08:14 +02:00
Showing only changes of commit 1ec1db0658 - Show all commits

View File

@@ -57,11 +57,14 @@ function RouteComponent() {
<Text> <Text>
{AsyncData.match(state, { {AsyncData.match(state, {
NoData: () => "No data yet", NoData: () => "No data yet",
Loading: () => "Loading...", Loading: progress =>
Success: value => `Loading...
`Value: ${value}`, ${ Option.match(progress, {
Failure: cause => onSome: ({ loaded, total }) => ` (${ loaded }/${ Option.getOrElse(total, () => "unknown") })`,
`Error: ${cause}`, onNone: () => "",
}) }`,
Success: value => `Value: ${ value }`,
Failure: cause => `Error: ${ cause }`,
})} })}
</Text> </Text>