Redundant query on public / embedded question page with default filters #17061
Labels
Embedding/Public
Simple public iframe embeds
Embedding/Static
Static embedding, previously known as signed embedding
.Frontend
.Performance
Priority:P2
Average run of the mill bug
Querying/Parameters & Variables
Filter widgets, field filters, variables etc.
.Team/Embedding
Type:Bug
Product defects
When opening a public question page that has filters with default values, the app performs two queries instead of one. It's happening because of a current filter values lifecycle. The first query is done without any filters, then filters receive default values, and another request is made. Moreover, it slows down the time until people can see the relevant results.
A possible solution would be to move the logic retrieving/syncing filter default values to the upper level (e.g.
PublicQuestion
), so the initial query contains default filter parameters. It's currently done bysyncQueryParamsWithURL
atParameters
More details here: #17034
Query and parameters lifecycle
From #17034
The text was updated successfully, but these errors were encountered: