snek-at / front

I'm a 🐍 follow me.
Other
1 stars 2 forks source link

When switching the profile page while caching yours the cache gets fucked up #62

Open schettn opened 4 years ago

schettn commented 4 years ago

Describe the feature or change you'd like Error behaviour:

  1. Log in
  2. See that caching is ongoing
  3. Switch page via the SearchBar before caching is done
  4. See error in console
  5. Notice that your cache data might be fucked up

Additional context This error occurs due to intel.appendList() is not only called for the logged user. snek-intel does not use separated databases for each intel.appendList() iteration therefore the data seems to be inconsistent.

I would suggest to add some checks to prevent this in the App.js