I will try to phrase this question more as a problem than a discussion point.
Im building an Angular 4 + Spring application and I am having problems with state management. App functionalities are login, interactive map, subpages with settings etc.
My problem: For example, user logs in, does something with interactive map(changes map layers which are shown or zooms in on map) and then goes to an subpage or logs off completely from app. The desired functionality would be that next time the user logs in, the same things that he/she did last time will be there also this time.
I have done some research and currently I see 3 options:
- Front-end approach with cookies
- Back-end approach with API's that hold these values
- Redux
At this point I'm not sure which approach I should take..