Skip to content
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

Merged
merged 2 commits into from
Feb 27, 2023
Merged

Conversation

dhruvkelawala
Copy link
Contributor

@dhruvkelawala dhruvkelawala commented Feb 24, 2023

  • also handle loading states

Issue / feature description

Add polling on Transaction Simulation to always get the latest data. Also added better loading state handling

Checklist

  • Rebased to the last commit of the target branch (or merged)
  • Code self-reviewed
  • Code self-tested
  • Tests updated (if needed)
  • All tests are passing locally

- also handle loading states
endColor="neutrals.700"
/>
</IconWrapper>
)
Copy link
Contributor

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 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which case?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah nvm all good

@github-actions
Copy link

Builds for local testing

@@ -56,6 +56,7 @@ export const useTransactionSimulation = ({
transactionSimulationFetcher,
{
revalidateOnFocus: false,
refreshInterval: 15e3,
Copy link
Collaborator

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?

Copy link
Contributor Author

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.

@github-actions
Copy link

Builds for local testing

@dhruvkelawala dhruvkelawala merged commit db79b3d into develop Feb 27, 2023
@dhruvkelawala dhruvkelawala deleted the polling-on-simulation branch February 27, 2023 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants