Skip to content

QuickGrid executes the same query twice when prerendering and rendering interactively #61090

Open
@danroth27

Description

@danroth27

QuickGrid will execute the same query twice when prerendering and rendering interactively.

Repro steps:

  • Create a default Blazor Web App
  • Run the Blazor CRUD scaffolder to add a QuickGrid set up to use EF Core
  • Update the Index page with the QuickGrid to use interactive server rendering
  • Run migrations to setup the DB and then run the app and browse to the Index page with the QuickGrid
  • Examine the app logs to see the duplicate queries: one for when the page prerenders and one for when the page renders interactively.

@javiercn Could we use the persistent component state infrastructure to avoid the duplicate query?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions