Query work
All checks were successful
Lint / lint (push) Successful in 15s

This commit is contained in:
Julien Valverdé
2025-03-07 22:23:44 +01:00
parent cabceaffcd
commit 7935293bc3
8 changed files with 75 additions and 63 deletions

View File

@@ -20,7 +20,7 @@ function RouteComponent() {
const [count, setCount] = useState(1)
const query = R.useQuery({
key: ["uuid4", count],
key: R.useStreamFromValues(["uuid4", count]),
query: () => Console.log(`Querying ${ count } IDs...`).pipe(
Effect.andThen(Effect.sleep("500 millis")),
Effect.andThen(HttpClient.get(`https://www.uuidtools.com/api/generate/v4/count/${ count }`)),