HimeHina
How to implement a webcam component gracefully and correctly?
If the state of the webcam is pending when
onCleanup
is executed, checking isWebcamOpened
only will not stop the track. I might have found a better way to handle this, using createReaction
. Here is the updated code: https://playground.solidjs.com/anonymous/ced4edfd-7038-47a1-b311-5c45248d00f4 What do you think?5 replies