Skip to content
This repository was archived by the owner on Aug 4, 2025. It is now read-only.
This repository was archived by the owner on Aug 4, 2025. It is now read-only.

Invoke Redux actions before or after a step #6

@1fifoto

Description

@1fifoto

Add new step properties, actionsBefore and actionsAfter, which is an array of Redux actions to be dispatched against the Redux store either before the step becomes active or after the step is dismissed or skipped respectively. Providing this allows a tutorial to stimulate an React/Redux application to show a demonstration without requiring the user to enter anything.

For example, using the React TODO application sample:

steps: [
    {
        key: 'anywhere',
        ...
        actionsAfter: [
            {
                type: ADD_TODO,
                text: 'Build my first Redux app'
            },
            {
                type: TOGGLE_TODO,
                index: 5
            }
        ]
    },
    ...
]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions