CottageCabbage / vu-dooit

Task Manager application for Web, Desktop and Mobile. Still in development
https://CottageCabbage.github.io/vu-dooit
3 stars 1 forks source link

If you reload while in a project page, things break. #8

Closed CottageCabbage closed 2 years ago

CottageCabbage commented 2 years ago

Can be fixed by reloading while in another type of page, such as 'Profile' or just home.

I think it has something to do with how right now, the tasks are passed as parameters through the router-links. I thought

if (this.$route.params.projectID !== null) {
      this.title = this.$route.params.projectID

      if (this.$route.params.tasks !== null) {
        this.tasks = JSON.parse(this.$route.params.tasks)
      }
    }

Would be enough to prevent that, but apparently not.

CottageCabbage commented 2 years ago

Reloading while in a project page now still returns a blank page, but can be fixed simply by moving into any other, including projects. Fixed enough for now.