americanexpress / react-albus

✨ React component library for building declarative multi-step flows.
Apache License 2.0
1.1k stars 89 forks source link

Initiate specific step on load #56

Open Anandks1993 opened 4 years ago

Anandks1993 commented 4 years ago

I want to start wizard from specific step. On mount step comes with id as null. Please help me to achieve this.

Eg: Consider wizard is having 3 steps and I want to start from 2nd step on mount, after that the flow should be normal.

jsmartfo commented 4 years ago

Does the skip step example illustrate what you need? http://americanexpress.io/react-albus/

Anandks1993 commented 4 years ago

Yeah, but on mount I am getting step with id as null and steps with empty array. I want to skip the first step.

micabe commented 4 years ago

Hi @Anandks1993 see here: https://github.com/americanexpress/react-albus/blob/master/__tests__/components/Wizard.spec.jsx#L125

github-actions[bot] commented 4 years ago

This issue is stale because it has been open 30 days with no activity.

herrmannplatz commented 4 years ago

Stumbled across the same issue. My assumption was, that i can just pass step: { id: 'theStepIWantToStartFrom'} via context.wizard

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 30 days with no activity.

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 30 days with no activity.