planettelex / Songtracker-Pro

Music Income Tracking for Record Labels, Publishers, and Artists
MIT License
3 stars 0 forks source link

Persist State On Browser Refresh and Allow Deep Linking To Pages That Require Authentication #36

Closed RobDixonIII closed 3 years ago

RobDixonIII commented 3 years ago

Currently state in the application only works if the user never hits refresh. Also deep links that depend on checking state for access first cannot work. There is a vuex plugin that is supposed to address this issue: https://github.com/robinvdvleuten/vuex-persistedstate

Install and implement this.

RobDixonIII commented 3 years ago

vuex-persistedstate started throwing circular JSON serialization errors (and none of the objects had a circular reference). This started happening after some node js updates to dependencies.

Uninstall it, and install and confiure https://github.com/championswimmer/vuex-persist as a replacement.