Fix example
All checks were successful
Lint / lint (push) Successful in 12s

This commit is contained in:
Julien Valverdé
2026-01-14 12:47:48 +01:00
parent c029f85401
commit d1ef42e9cb

View File

@@ -74,7 +74,7 @@ const ResultView = Component.makeUntraced("Result")(function*() {
Match.tag("Success", result => <> Match.tag("Success", result => <>
<Heading>{result.value.title}</Heading> <Heading>{result.value.title}</Heading>
<Text>{result.value.body}</Text> <Text>{result.value.body}</Text>
{Result.isRefreshing(result) && <Text>Refreshing...</Text>} {Result.hasRefreshingFlag(result) && <Text>Refreshing...</Text>}
</>), </>),
Match.tag("Failure", result => Match.tag("Failure", result =>
<Text>An error has occured: {result.cause.toString()}</Text> <Text>An error has occured: {result.cause.toString()}</Text>
@@ -94,7 +94,7 @@ const ResultView = Component.makeUntraced("Result")(function*() {
Match.tag("Success", result => <> Match.tag("Success", result => <>
<Heading>{result.value.title}</Heading> <Heading>{result.value.title}</Heading>
<Text>{result.value.body}</Text> <Text>{result.value.body}</Text>
{Result.isRefreshing(result) && <Text>Refreshing...</Text>} {Result.hasRefreshingFlag(result) && <Text>Refreshing...</Text>}
</>), </>),
Match.tag("Failure", result => Match.tag("Failure", result =>
<Text>An error has occured: {result.cause.toString()}</Text> <Text>An error has occured: {result.cause.toString()}</Text>