Skip to content

incognito window messes up suggestion state #40

@Plamen5kov

Description

@Plamen5kov

steps to reproduce:

  • try to open the tool in an incognito window OR deleting the localstorage key and opening the homepage
  • click "suggest"

actual result
you get a proposal with more than 0 assessments. The list of proposals doesn't seems to be correctly ordered

expected result
you get a proposal with 0 or as low as possible number of suggestions

workaround
Workaround by reloading with Ctrl + R and hitting suggest another proposal in the selection screen or suggest proposal in the home screen. After the reload both work as expected and the vuex store is updated.

research done on issue
The problem resides somewhere in the plugin we use for localstorage "vuex-localstorage" which is 5 years old and no one is working on it. Other people have had the same issue using this plugin and other versions of localStorage usage as well. Problem is that localstorage doesn't work well with reactive state (vuex). It doesn't manage to update vuex state because of the browser limitation related to the the different way the incognito window works.
I tried using a different library for vuex local storage but the result was the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions