Skip to content

feat: use skeleton during table load - #117

Merged
vnepogodin merged 1 commit into
CachyOS:developfrom
azdanov:add-table-skeleton
Apr 25, 2026
Merged

feat: use skeleton during table load#117
vnepogodin merged 1 commit into
CachyOS:developfrom
azdanov:add-table-skeleton

Conversation

@azdanov

@azdanov azdanov commented Apr 23, 2026

Copy link
Copy Markdown
Member

Used previous implementation.

Another option is to use TanStack/table#2386 approach inside the table component and pagination. But that requires more work.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts the home route’s query preloading behavior so the package search table can render a skeleton while data loads, instead of blocking rendering until the query resolves.

Changes:

  • Switched the / route loader from ensureQueryData to a non-blocking prefetchQuery call.
  • Rendered PackageSearchSkeleton while the search query is pending and no data is available.
  • Tweaked skeleton spacing classes for closer visual alignment with the loaded table.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/routes/index.tsx Makes route loader start the query without blocking route render.
src/components/PackageSearch.tsx Adds skeleton rendering during pending state.
src/components/PackageSearchSkeleton.tsx Minor spacing tweaks for the skeleton layout.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/routes/index.tsx
Comment thread src/components/PackageSearch.tsx
@azdanov
azdanov force-pushed the add-table-skeleton branch from 2839566 to f1f7bb6 Compare April 25, 2026 18:14

@vnepogodin vnepogodin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@vnepogodin
vnepogodin merged commit 08e9dce into CachyOS:develop Apr 25, 2026
1 check passed
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