-
-
Notifications
You must be signed in to change notification settings - Fork 257
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
Non-blockbook account fetch optimisations #15691
Conversation
🚀 Expo preview is ready!
|
28d3ae5
to
45ed4d6
Compare
export const useWindowVisibility = () => { | ||
const dispatch = useDispatch(); | ||
|
||
const onWindowVisibilityChange = () => { |
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.
it would be possible to extend this by also having state from electron layer. There is one more state only for macOS. You can also detect when app is cover by another app, but that would make it more complicated for now. Let's tested at least using just Page visibility api from renderer layer
const isLessThanDefaultSyncInterval = | ||
Date.now() - updatedAt < DEFAULT_ACCOUNT_SYNC_INTERVAL; | ||
|
||
if (!isLessThanDefaultSyncInterval) { |
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.
This is little bit stupid but 1 minute is okay for now, it would be great to have specific refresh time limit for specific chains
feabb6d
to
21cf04d
Compare
21cf04d
to
34dc631
Compare
1cb33da
to
b756d16
Compare
4add47d
to
2f47d63
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
Description
solanaX.trezor.io
tosolX.trezor.io
so that we can cut old suite versions if neededTODO: refresh buttonmaybe will be done in some future PRs@trezor/qa please test that Cardano and Solana accounts are updated every 5 minutes and that they are updated when you enter them (if they are older than 1 minute). You can check networks tab and just filter
sol
, for cardano you have to check websockets