QuickGrid executes the same query twice when prerendering and rendering interactively
Open
area-blazor
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 290
Description
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?
Contributor guide
Assessment
This issue has not been assessed yet.