fix: handling of token page throttling#1100
Merged
Conversation
The token page is prone to being throttled because it tries to load in order books for the "top 10 tokens". This change moves logic to useQuery and out of redux. It then makes sure the token's information is loaded in before trying to load in dex pairs. Fixes #790
ckniffen
commented
Dec 17, 2024
| }) | ||
|
|
||
| it('should dispatch correct actions on successful loadTokenState', () => { | ||
| client.addResponses(rippledResponses) |
Collaborator
Author
There was a problem hiding this comment.
it might be worth having this tests still to check that rippled responses are transformed right.
Collaborator
There was a problem hiding this comment.
We can have a ticket to add these back later.
Collaborator
|
Seems like #984 might be related |
pdp2121
approved these changes
Dec 17, 2024
Collaborator
I think we can merge this one in first to fix token page. Then we can rebase the one that you created |
anissa-ripple
approved these changes
Dec 17, 2024
1 task
endz80513
added a commit
to endz80513/explorer
that referenced
this pull request
Dec 21, 2024
This reverts commit 8d503da.
achowdhry-ripple
added a commit
that referenced
this pull request
Apr 8, 2025
## High Level Overview of Change This PR removes the last of redux from the codebase. The only two pieces left were Account and Token. It also removes all mentions of gravatars. This also reduces the size of the build by about 35kb. There were some build issues that required regenerating the package-lock, which is almost all of the diff. ### Context of Change * #649 * #640 * #635 * #634 * #1100 ### Type of Change - [x] Refactor (non-breaking change that only restructures code) ### TypeScript/Hooks Update N/A ## Test Plan Tests were fixed to handle the refactor. --------- Co-authored-by: Ashray Chowdhry <achowdhry@ripple.com>
heap-coder
added a commit
to heap-coder/explorer
that referenced
this pull request
Sep 27, 2025
## High Level Overview of Change This PR removes the last of redux from the codebase. The only two pieces left were Account and Token. It also removes all mentions of gravatars. This also reduces the size of the build by about 35kb. There were some build issues that required regenerating the package-lock, which is almost all of the diff. ### Context of Change * ripple/explorer#649 * ripple/explorer#640 * ripple/explorer#635 * ripple/explorer#634 * ripple/explorer#1100 ### Type of Change - [x] Refactor (non-breaking change that only restructures code) ### TypeScript/Hooks Update N/A ## Test Plan Tests were fixed to handle the refactor. --------- Co-authored-by: Ashray Chowdhry <achowdhry@ripple.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
High Level Overview of Change
The token page is prone to being throttled because it tries to load in
order books for the "top 10 tokens". This change moves logic to useQuery
and out of redux. It then makes sure the token's information is loaded
in before trying to load in dex pairs.
Fixes #790
Type of Change
TypeScript/Hooks Update
Before / After
Before
After