-
Notifications
You must be signed in to change notification settings - Fork 4
Description
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.