-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve predictive search performance (#1823)
* Use GET method for predictive search to avoid revalidations * Add browser cache to predictive search API * Add loading state to predictive search * Changesets * Fix type
- Loading branch information
Showing
3 changed files
with
30 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
'skeleton': patch | ||
--- | ||
|
||
Improve performance of predictive search: | ||
|
||
- Change the request to be GET instead of POST to avoid Remix route revalidations. | ||
- Add Cache-Control headers to the response to get quicker results when typing. | ||
|
||
Aside from that, it now shows a loading state when fetching the results instead of "No results found.". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters