I am trying to understand the best way to design a multi-step workflow;
我试图了解设计多步骤工作流程的最佳方法;
So I have the following possibilities;
所以我有以下几种可能性;
Step 1 (list) > Step 2a (review screen a) > Step3 (confirm screen)
Step 1 (list) > Step 2b (review screen b) > Step3 (confirm screen)
At each step, I call an API and based on the response, I make a decision. It is possible that user moves from Step 1 directly to Step 3 (based on API response)
在每一步,我都会调用API并根据响应做出决定。用户可能会从步骤1直接转到步骤3(基于API响应)
OR it is also possible to have
或者它也有可能
Step 1 (list) > Step 2a (review screen a) > Step 2b (review screen b) > Step3 (confirm screen)
What is the best way to design the routes considering the above ? I mean in terms of nested routes, dynamic segments, folder structure for route objects, etc ?
考虑到上述情况,设计路线的最佳方法是什么?我的意思是在嵌套路由,动态段,路由对象的文件夹结构等方面?
1 个解决方案
#1
0
One option is to put Steps 2a, 2b and 3 directly inside Step 1's route and then use transitionTo()to move between the routes as @canufeel mentioned
一种选择是将步骤2a,2b和3直接放在步骤1的路径中,然后使用transitionTo()在路径之间移动,如@canufeel所述
#1
0
One option is to put Steps 2a, 2b and 3 directly inside Step 1's route and then use transitionTo()to move between the routes as @canufeel mentioned
一种选择是将步骤2a,2b和3直接放在步骤1的路径中,然后使用transitionTo()在路径之间移动,如@canufeel所述