I am trying to build a real world application with xstate but I am having trouble with modeling the application startup.
a user can enter the application start by typing the www.ex.com to go the home page
but a user can also enter the application www.ex.com/any-page
can someone give an example of modeling application with multiple pages
a user can be unauthenticated an be on the login page or home page but not secure page
or
a user can be authenticated and be on any page
I want each page to have there own state that is what is prompting the question.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…