app icon indicating copy to clipboard operation
app copied to clipboard

`Restorer` pattern is unnecessarily complex

Open efstajas opened this issue 1 year ago • 0 comments

I implemented the Restorer utility in order to save & restore step contents while navigating back and forth within a flow. Turns out a way, way easier way to do it is to just persist all of the flow's fields in its state (passed to Stepper as context), as I'm doing it on jason/funder-onboarding. Same effect, with no need for implementing Restorer separately. We should refactor all the existing flows that use Restorer to persist state like the new flows in jason/funder-onboarding do.

efstajas avatar May 31 '23 10:05 efstajas