Refactor frontend API calls to use batched metadata and caching#82
Open
pkprathamkhanal wants to merge 10 commits into
Open
Refactor frontend API calls to use batched metadata and caching#82pkprathamkhanal wants to merge 10 commits into
pkprathamkhanal wants to merge 10 commits into
Conversation
Update index.js to use batch endpoints, add caching, and fix request handling.
Update Solver.js to use batched solver and info requests
Update Verifier.js to use batched verifier and info requests
Refactor Visualization.js to use batch endpoints for loading visualizations and metadata
Refactor Reducer.js to use batched info endpoint for reduction visualization and improve dependency handling
Refactor Problem.js to load problems and problem metadata from batch API endpoints
Trosper3
requested changes
Apr 29, 2026
Trosper3
left a comment
There was a problem hiding this comment.
The speed of the initial loading of the page is MUCH quicker, but none of the problems are loading up.
Contributor
Author
|
You are right, @Trosper3. I am very surprised why this is not working, but I am actively reviewing it. Will come up with solution soon. |
Fixed visualization and reduction API requests by including solver parameters in frontend visualization calls.
Fixed visualization and reduction rendering issues by passing solver parameters into frontend visualization API requests.
pkprathamkhanal
commented
May 6, 2026
Contributor
Author
pkprathamkhanal
left a comment
There was a problem hiding this comment.
This should probably fix the problem.
pkprathamkhanal
commented
May 6, 2026
Contributor
Author
pkprathamkhanal
left a comment
There was a problem hiding this comment.
This has fixed the issue in my local server, and I believe this will load all the components. Thank you.
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.
Summary
This PR is the frontend which is fetching to reduce repeated API calls by using the batched request along with caching as well.
Changes Made
Why
Previous implementation made repeated API calls for mostly static data. This improves performance and closely matches with backend batching and caching changes.
Notes
Frontend changes are related to backend batching changes.
Backend PR Link: ReduxISU/Redux#168