Skip to content

Behavior when a state transition is triggered from a callback? #27

@TTimo

Description

@TTimo

I run into a problem because I have an 'onbeforecaptured' callback that ends up doing a call to the fsm to transition to another state before the callback is done.

It seems to result into the the FSM changing state once while within the callback, then changing state to the state that should normally happen at the end of the callback.

  • Is it possible to configure the FSM to catch and assert if a state transition is initiated while another transition is ongoing?
  • Would queuing the state transition to happen after the current callback is processed be desirable?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions