Skip to content

Conversation

@rmnbrd
Copy link
Contributor

@rmnbrd rmnbrd commented Jan 12, 2026

Summary

This PR improves data fetching by using React Suspense.

The idea is to prefetch the most common API endpoints (organizations list and details, cluster list, projects list) in a non-blocking way, and use React Suspense to deal with loading states.

@RemiBonnet
Copy link
Member

Qovery Preview

Qovery can create a Preview Environment for this PR.
To trigger its creation, please post a comment with one of the following command.

Command Blueprint environment
/qovery preview 15d69f24-9bc1-4a8d-80fe-d1bb1b2bcd00 New Navigation
/qovery preview {all|UUID1,UUID2,...} To preview multiple environments

This comment has been generated from Qovery AI 🤖.
Below, a word from its wisdom :

There are two hard problems in computer science: naming things, cache invalidation and off-by-1 errors

@rmnbrd rmnbrd force-pushed the impr/new-nav/data-fetching branch from f10b949 to b9c3400 Compare January 12, 2026 17:31
@rmnbrd rmnbrd force-pushed the impr/new-nav/data-fetching branch from b9c3400 to 6f637d9 Compare January 13, 2026 05:56
Copy link
Member

@RemiBonnet RemiBonnet left a comment

Choose a reason for hiding this comment

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

LGTM 👍

We will probably need to avoid having too much loader, example with the Organization Overview and Clusters views, only one should be enough!

@rmnbrd rmnbrd merged commit 541ca50 into new-navigation Jan 13, 2026
1 check passed
@rmnbrd rmnbrd deleted the impr/new-nav/data-fetching branch January 13, 2026 13:14
rmnbrd added a commit that referenced this pull request Jan 19, 2026
* feat: add main loader for /orgId routes

* impr: rework orgId/clusters data fetching

* impr: rework current queries instead of declaring new ones

* impr: add prefetch for organizations and clusters

* feat: add more prefetched API routes
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.

3 participants