useSubscribeStream
All checks were successful
Lint / lint (push) Successful in 14s

This commit is contained in:
Julien Valverdé
2025-05-11 03:17:35 +02:00
parent 59b7115d19
commit e5a7fe8ad6
2 changed files with 26 additions and 7 deletions

View File

@@ -22,7 +22,7 @@ function RouteComponent() {
), [])
const uuidStream = R.useStreamFromReactiveValues([uuid])
const [uuidStreamLatestValue, pullUuidStream] = R.usePullStream(uuidStream)
const uuidStreamLatestValue = R.useSubscribeStream(uuidStream, true)
const scope = R.useScope([uuid])
@@ -42,7 +42,7 @@ function RouteComponent() {
onNone: () => <></>,
})}
</Text>
<Button onClick={() => runSync(pullUuidStream)}>Pull UUID</Button>
{/* <Button onClick={() => runSync(pullUuidStream)}>Pull UUID</Button> */}
</Flex>
)
}