search: Fix search results page flickering
Created by: fkling
Fixes #38928 (closed)
This commit introduces a simple fix to prevent the search homepage from being shown for a split second when navigating back to search results.
As the issue points out, the reason for the flicker is that the component rerenders before the query state was updated.
Medium term we should look into how/when the query state is updated, but considering there is a release cut today, we should get this fix in asap.
https://user-images.githubusercontent.com/179026/179728525-766baee7-e166-4faa-9627-49b7c30a772b.mp4
Test plan
Navigated back from a file to search results, didn't see the search homepage flash.
App preview:
Check out the client app preview documentation to learn more.