-
Notifications
You must be signed in to change notification settings - Fork 227
chore(ui): Clean new keyboard option #495
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
916ed3e to
0512673
Compare
|
Reverted the comment. |
0512673 to
b9669ff
Compare
| setKeyboardLayout(resp.result as string); | ||
| }); | ||
| }, []); // eslint-disable-line react-hooks/exhaustive-deps | ||
| }, [send, setKeyboardLayout]); |
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.
This change at minimum needs to be landed somehow. As it stand without those dependencies listed we're going send("getKeyboardLayout" message and call the get setKeyboardLayout(` every single render cycle.
☝️ @adamshiervani
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.
@ym, this really needs to be merged... tons of React rerenders until we do...
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.
Empty dependencies mean that it will behave like componentDidMount, running only once when the component mounts. I can also confirm that it does not re-render outside the case mentioned above.
fecdfd6 to
5911b8a
Compare
Fixed the Tailwind CSS syntax for `in` (nested) selector Added missing React dependency for `useEffect`
5911b8a to
05cc4a1
Compare
| setKeyboardLayout(resp.result as string); | ||
| }); | ||
| }, []); // eslint-disable-line react-hooks/exhaustive-deps | ||
| }, [send, setKeyboardLayout]); |
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.
Empty dependencies mean that it will behave like componentDidMount, running only once when the component mounts. I can also confirm that it does not re-render outside the case mentioned above.
Fixed the Tailwind CSS syntax for `in` (nested) selector Added missing React dependency for `useEffect`
Fixed the Tailwind CSS syntax for `in` (nested) selector Added missing React dependency for `useEffect`
Fixed the Tailwind CSS syntax for `in` (nested) selector Added missing React dependency for `useEffect`
Fixed the Tailwind CSS syntax for
in(nested) selectorAdded missing React dependency for
useEffect