Skip to content

Silence console warning for invalid event in FiniteStateMachine in prod #370

@f-elix

Description

@f-elix

Describe the feature in detail (code, mocks, or screenshots encouraged)

One of the selling points of a state machine is that it can receive invalid events and nothing will happen, preventing invalid states.

I understand the warning can be useful to detect errors in the machine configuration, but it should at least only show up in dev, not in production.

What type of pull request would this be?

None

Provide relevant links or additional information.

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    triagePending triage by a maintainer to give it proper labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions