MaleihMaxime
MaleihMaxime

Reputation: 63

Return user to last step on next visit reactjs

I am creating a long on-boarding process. It is possible that a user might not complete the process during one visit. I would like to return a user to the step he/she left from on the next visit.

Upvotes: 0

Views: 30

Answers (1)

Den Kison
Den Kison

Reputation: 1084

I assume it depends on situation.

Authenticated user

Here I would suggest to store steps state on back-end side. You will have possibility to restore it even in situation when user authenticated on another device/browser.

Guest

Here I would suggest to store steps state in local storage, and restore it whenever you need.

Upvotes: 2

Related Questions