Skip to content

[Medium] Board flashes a skeleton on every search or filter change #75

Open

Description

@CAMIANAIS

Problem

When the user types in search or changes a filter, the board flashes.

Root cause

In src/features/tasks/TasksView.tsx:37-42, each search makes a new queryKey (['tasks', input]). A new key has no data yet, so isPending is true and the whole board is replaced by <TaskBoardSkeleton />.

Proposed fix

Use placeholderData: keepPreviousData in the useQuery, so the old results stay on screen while the new ones load.

Acceptance criteria

  • The user types in search and sees the old cards until the new results load, not the skeleton.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions