americanexpress / react-albus

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

how to dynamically determine next/previous steps based on state? #122

Open daniellizik opened 1 year ago

daniellizik commented 1 year ago

Put in another way, how do I use this as a finite state machine? Sometimes a wizard might have steps A >> B >> C >> D. At D, you can return to B, but only on condition x.

Is this sort of logic exposed in this lib?

itamarbareket commented 1 year ago

Hi @daniellizik I might be late, but I released WhizFlow for that purpose!

You can check it out - it's fully headless and logic is detached from the React components.

github-actions[bot] commented 1 year ago

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