pickle-finance / pickle-ui

UI to interact with the PICKLE protocol
https://app.pickle.finance
51 stars 51 forks source link

Improve incremental user model updates #518

Closed janklimo closed 2 years ago

janklimo commented 2 years ago

Right now, once the user model is present, we wait for the whole user model to be fetched before updating the UI (ignoring incremental updates to prevent flash of content). As a result, users are confused when the UI shows stale data (like when they harvested rewards on another computer). This ticket is to update incremental update handling so that we merge in the incremental updates, making the UI update faster while preventing any flash of content.