-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Finance - use updated app API with caching and init #854
Conversation
originates from discssion in aragon/aragon.js#297 (comment)
723f3bb
to
8389410
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Just a note on updating the token balances of the Vault on initialization.
* Use cached state in init and use sync events * Render syncing state * Use exported events object from the api From e027fb419fa62a220034a248bc7c1d1271731519 * Finance: use the SyncIndicator component (#874) * Finance: use the SyncIndicator component * Finance: update @aragon/api dependencies * bump @aragon/api 2.0.0-beta.2 * Upgrade rxjs
break | ||
case events.SYNC_STATUS_SYNCED: | ||
nextState.isSyncing = false | ||
break |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small thing, could we lift these events out of the address check and do something similar to the Voting app?
* finance: use updated api to leverage caching * Add todo about a performance improvement originates from discssion in aragon/aragon.js#297 (comment) * Remove old TODO * Load all token balances on init * fixup! Load all token balances on init * Finance - app loading state (aragon#867) * Use cached state in init and use sync events * Render syncing state * Use exported events object from the api From e027fb419fa62a220034a248bc7c1d1271731519 * Finance: use the SyncIndicator component (aragon#874) * Finance: use the SyncIndicator component * Finance: update @aragon/api dependencies * bump @aragon/api 2.0.0-beta.2 * Upgrade rxjs
What
INITIALIZATION_TRIGGER
with an init function (part of the new API)initializationBlock
to the api to leverage cachingDependency PR