-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Picker and Suggestions: Move the styled call out of render call. #8834
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- It breaks type check on React reconciliation.
Component perf results:
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, apart from some nitpicking. Thanks for the cleanup :)
packages/office-ui-fabric-react/src/components/pickers/BasePicker.tsx
Outdated
Show resolved
Hide resolved
packages/office-ui-fabric-react/src/components/pickers/Suggestions/Suggestions.tsx
Outdated
Show resolved
Hide resolved
@Adjective-Object Thank you very much for reviewing! I have polished the code to avoid the @joschect @ecraig12345 @KevinTCoughlin Do you have more comments on the pull request? I think it OK to merge it to master. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this was introduced by me when I did the css-in-js conversion of the pickers 😊 . Thanks for fixing it and apologies for not noticing the flashing regression.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch.
@joschect @JasonGore Could you please help to complete the PR? |
🎉 Handy links: |
It breaks type check on React reconciliation.
Pull request checklist
$ npm run change
Description of changes
Solve the picker suggestion item unmount issue:
Focus areas to test
Pickers.
Microsoft Reviewers: Open in CodeFlow