Invoking a callback or external action (xstate v5 + react) #5245
Unanswered
GuyMevorachLevy
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have 3 states and an entryAction for each state, I want to invoke a method (for example play/pause/stop of a video ref element) fro each action.
Unfortunately I could not do it, v5 has no action params in the useMachine.
Also tried using an input for the machine but the ref object is null at the beginning.
How could I achieve it?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions