americanexpress / react-albus

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

Albus fails to reinitialize #32

Closed yyynnn closed 4 years ago

yyynnn commented 6 years ago

Hello, running into problem here.

Having steps generate from json (getting from API) from redux store. Initial value is an empty array. Albus renders this empty 'steps'. Then after getting all of the real data wizard is not re-initializing, resulting in empty render.

For now i can check beforehand if data is empty, like this:

{!isEmpty(data) && (
              <Wizard>
                   ....
              </Wizard>
            )}

but would be nice to handle the re-render inside Albus without unnecessary noise.

github-actions[bot] commented 4 years ago

This issue is stale because it has been open 30 days with no activity. Remove no-issue-activity label or comment or this will be closed in 5 days.

rizwanad commented 4 years ago

Hi. great library this is. Can you please cater the solution in this version ?