any #react experts in here? I am working on a small demo using react context and web serial api. I share some kind of service via context (connect, disconnect, etc.) and I would like to make sure I disconnect when this context provider gets unmounted.
Is that even possible to run an async call (web serial disconnect) in the provider's useEffect cleanup call?