Cache assessments in local storage
Feature Description
Currently, eveytime the page is opened or re-visited everything is loaded anew. We should cache them and only fetch what is new
Motivation and Context
This is not elegant & can become slow if there are many notification-events.
Possible Implementation
we could cache the data of assessment in localStorage (incl. the latest block when the assessments have been up2date).
When reloading the page, we only fetch events from that block onwards in order to add all newly created assessments. (we read their addressess from events and their information by reading from chain)
For the cached assments we can refrain from reading the data from chain IFF they were in stage 'done'. Else, we need to reload assment-stage & user-stage for them.
Related Issues/Tasks
#174 (closed) also deals with assessment data.
DJU: I got some work on this on a branch. ping me if you want to pick it up.