Async nextStep function in Wizard #1277
-
Hi! We've got a multi-step form in which we'd like to asynchronously select the next step to transition to. As of now, the Wizard We have a working proof of concept as Any ideas would be welcome! Happy to submit a PR to update the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
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 |
Beta Was this translation helpful? Give feedback.
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…