This commit is contained in:
@@ -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 }`)),
|
||||
|
||||
Reference in New Issue
Block a user