-
Notifications
You must be signed in to change notification settings - Fork 273
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
fix: add transaction simulation polling #1833
Conversation
- also handle loading states
endColor="neutrals.700" | ||
/> | ||
</IconWrapper> | ||
) |
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.
Isnt there a case that is not covered here ?
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.
Which case?
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.
ah nvm all good
@@ -56,6 +56,7 @@ export const useTransactionSimulation = ({ | |||
transactionSimulationFetcher, | |||
{ | |||
revalidateOnFocus: false, | |||
refreshInterval: 15e3, |
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.
Just to sense-check - will it throttle now on Testnet if BE repeatedly returns 500?
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.
I don't think so it throttles if it's on 15s interval.
Issue / feature description
Add polling on Transaction Simulation to always get the latest data. Also added better loading state handling
Checklist