Turn on no-getstate eslint rule and apply fixes#5239
Conversation
|
Storybook 8 URL https://60c7ae6891f0e90039d7cd54-gimuubrslh.chromatic.com/ |
CallWithChat bundle size is not changed.
|
Chat bundle size is decreased✅.
|
Calling bundle size is not changed.
|
|
Storybook 8 URL https://60c7ae6891f0e90039d7cd54-axjgldgenm.chromatic.com/ |
@azure/communication-react jest test coverage for beta.
|
@azure/communication-react jest test coverage for stable.
|
|
Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "update_snapshots" label to the PR for updating the snapshot. |
1 similar comment
|
Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "update_snapshots" label to the PR for updating the snapshot. |
|
Storybook 8 URL https://60c7ae6891f0e90039d7cd54-sshdnayzjn.chromatic.com/ |
|
Storybook 8 URL https://60c7ae6891f0e90039d7cd54-qtjbyjmnhg.chromatic.com/ |
|
Storybook 8 URL https://60c7ae6891f0e90039d7cd54-glhetscoko.chromatic.com/ |
|
Failed to pass the Static HTML UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "update_snapshots" label to the PR for updating the snapshot. |
…een.tsx Co-authored-by: vhuseinova-msft <98852890+vhuseinova-msft@users.noreply.github.com> Signed-off-by: James Burnside <2684369+JamesBurnside@users.noreply.github.com>
|
Failed to pass the Static HTML UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "update_snapshots" label to the PR for updating the snapshot. |
|
Storybook 8 URL https://60c7ae6891f0e90039d7cd54-eosfasiaix.chromatic.com/ |
|
Huge thanks for doing update! |
|
Storybook 8 URL https://60c7ae6891f0e90039d7cd54-ezkdbqxilx.chromatic.com/ |
…state-eslint-rules
|
Storybook 8 URL https://60c7ae6891f0e90039d7cd54-ruywexjlon.chromatic.com/ |
|
Storybook 8 URL https://60c7ae6891f0e90039d7cd54-nrmjkiwxtm.chromatic.com/ |
What
Turn on
no-getstatelint rule and apply fixesWhy
We need to be using useSelector anywhere where the state can change dynamically. This isn't strictly necessary in some cases but its too hard to know when adapter.getState can and can't be used so we are lighting up a lint rule to enforce it always
How Tested
Quick some test