Cleanup fix
All checks were successful
Lint / lint (push) Successful in 13s

This commit is contained in:
Julien Valverdé
2025-03-06 03:15:43 +01:00
parent d61339ea6a
commit f99d18b846
3 changed files with 47 additions and 21 deletions

View File

@@ -21,13 +21,23 @@ function RouteComponent() {
const query = R.useQuery({
query: () => Console.log(`Querying ${ count } IDs...`).pipe(
// Effect.andThen(Effect.sleep("500 millis")),
Effect.andThen(Effect.sleep("500 millis")),
Effect.andThen(HttpClient.get(`https://www.uuidtools.com/api/generate/v4/count/${ count }`)),
HttpClient.withTracerPropagation(false),
Effect.flatMap(res => res.json),
Effect.flatMap(Schema.decodeUnknown(Result)),
Effect.scoped,
),
// query: () => Console.log(`Creating ${ count } IDs...`).pipe(
// Effect.andThen(Effect.sleep("500 millis")),
// Effect.andThen(pipe(
// Array.range(1, count),
// Array.map(() => makeUuid4),
// Effect.all,
// )),
// Effect.flatMap(Schema.decode(Result)),
// Effect.provide(GetRandomValues.CryptoRandom),
// ),
key: ["uuid4", count],
})