How do you handle Routing Requirements?

I have a use case where I want to build “routing chains”, to direct users through processes that take several windows to accomplish

In some cases I want them to restart a chain, in others they would be able to resume.

Does anyone know of a package to help with this

How would you do it?

Thanks for your time and attention !


1 Like

I highly recommend using xstate for something like this. Their multi step form example sounds similar to your use case.

For having it be across Pages, not just views, you could keep the xstate machine in a Layout in a Set that wraps all the Pages:

<Set wrap={MachineLayout}>
  // step 1
  <Route ... />
  // step 2
  <Route ... />