Skip to content

Async nextStep function in Wizard #1277

Answered by rvsia
logancameo asked this question in Need help
Discussion options

You must be logged in to vote

Hello,

I think it would be cool to update it so nextStep could be an async function.

But this requires an additional work as there has to be some better UX to enable it. For example, when users click on the next button and during the async function execution, a loading spinner should be shown. In PF4 mapper we also use selectNext to generate the navigation menu, so there has to be also some indicator - and this feature is currently included in the common Wizard reducer.

As a quick workaround, we could just enable promise in the type definition to unblock you (cc @Hyperkid123) - and you could handle the custom loading behavior in a custom buttons component. Or if you need it quickly, you c…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@logancameo
Comment options

@rvsia
Comment options

@logancameo
Comment options

@rvsia
Comment options

@logancameo
Comment options

Answer selected by rvsia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants