Join Slack
Powered by
Is there a way to handle when a window is unfocuse...
# compose-desktop
c
Cody Mikol
05/30/2022, 5:56 PM
Is there a way to handle when a window is unfocused?
z
Zach Klippenstein (he/him) [MOD]
05/30/2022, 5:57 PM
LocalWindowInfo.current.isWindowFocused?
c
Cody Mikol
05/30/2022, 5:58 PM
No way to handle this via some callback?
Cody Mikol
05/30/2022, 5:58 PM
something like onBlur {}
z
Zach Klippenstein (he/him) [MOD]
05/30/2022, 6:00 PM
Yes, this property is backed by a mutable state, so the same way you can observe any snapshot state in compose:
snapshotFlow
c
Cody Mikol
05/30/2022, 6:04 PM
Thanks 🙂
6
Views
Open in Slack
Previous
Next