Skip to content

Conversation

@Su9DenLY
Copy link
Contributor

@Su9DenLY Su9DenLY commented Sep 9, 2025

No description provided.

@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@gravity-ui-bot
Copy link
Contributor

);

const checkboxValue = React.useMemo(() => {
const isChecked = React.useMemo(() => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The prefix "is" is typical for function naming, you can think of functions as questions, calling a function is basically the same as asking "Is checked?". Variable is more like a statement — "checked" is either yes or no, there’s no question involved here

In fact, in this case, changing the name doesn’t look critical, so I would suggest leaving it as it was.

@Su9DenLY Su9DenLY merged commit 237a88d into main Sep 10, 2025
4 checks passed
@Su9DenLY Su9DenLY deleted the one-of-switch branch September 10, 2025 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants