Skip to content

Token page: prime address query, split loading states, and skip JSON parse on API errors - #3623

Merged
tom2drum merged 4 commits into
mainfrom
tom2drum/token-page-optimizations
Aug 11, 2026
Merged

Token page: prime address query, split loading states, and skip JSON parse on API errors#3623
tom2drum merged 4 commits into
mainfrom
tom2drum/token-page-optimizations

Conversation

@tom2drum

Copy link
Copy Markdown
Collaborator

Description

Follow-up improvements for the token page load experience:

  • Prime the core:address request alongside the token and counters so the address data can arrive with SSR.
  • Split loading so the index tab can render token data while a slower address request is still pending (title, actions, and contract tab no longer wait on address alone).
  • Fix fetchApi so non-OK responses are not parsed as JSON and returned as if they were successful data (avoids treating an error payload as real API data on the server).

Environment variables

None

Minimum API version

None

Breaking or incompatible changes

None

Additional information

Made with Cursor

- add address query to primed list
- split the loading state of index tab so for slow address request it will show partial data from main token query
- fix bug when server fetched data contains error payload (not the real data)
@tom2drum
tom2drum merged commit 618a794 into main Aug 11, 2026
@tom2drum
tom2drum deleted the tom2drum/token-page-optimizations branch August 11, 2026 12:49
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.

1 participant