-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't rerender
JobCategorySuggest
on no-op props (#656)
* Don't rerender `JobCategorySuggest` on no-op props This avoids re-querying the SEEK API and re-displaying suggestions unless there's a meaningful change to our props. * Switch to `react-fast-compare` * Use caret range
- Loading branch information
Showing
4 changed files
with
349 additions
and
407 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,7 @@ | ||
--- | ||
'wingman-fe': patch | ||
--- | ||
|
||
**JobCategorySuggest:** Don't rerender on no-op props changes | ||
|
||
This avoids re-querying the SEEK API and re-displaying suggestions unless there's a meaningful change to our props. |
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
Oops, something went wrong.