Skip to content

Native list search and list drawers can hide the admin while server cells stream on 3.94.2 #19961

Backlog

Description

@MiguelFranken

Reproduction

The minimal SQLite app uses stock Payload 3.94.2, Next.js 16.4.6, React 19.3.1, Cache Components and Partial Prefetching. It has four synthetic rows and one server cell that waits 700 ms. The list uses Payload’s built-in search. A button opens the standard list drawer on the same collection.

  1. Follow the README to seed SQLite, build, and run next start.
  2. Run corepack pnpm check in another terminal. Alternatively, open Items, search for Alpha, and open Browse items.

Observed

In Chromium the original document and collection-list node survive. While the filtered rows stream, the admin navigation temporarily loses its layout and the scroll offset moves from 50 px to 0. Opening the drawer also hides the admin while its rows stream. The probe waits for the matching row and the drawer contents before checking the observations.

Expected

Keep the existing admin visible and preserve the scroll offset during an in-place list search. Opening the drawer should keep its loading state inside the drawer until its list can render.

Investigation

On the 3.x branch, DefaultListView copies its server-rendered Table prop into state in an effect, committing it outside the route transition. ListQueryProvider calls router.replace(search) with default scrolling. The drawer separately commits its streamed render-list result with an urgent state update.

Rendering Table directly, passing { scroll: false } for list query replacements, and transitioning the drawer result and loading state together made the production Chromium probe pass three consecutive times. Each run retained the document, list, and 50 px offset, with the navigation visible during both interactions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions