Skip to content
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

Queueing a series of state updates #881

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

isakura313
Copy link

This PR translates queueing-a-series-of-state-updates.md

welcome любые замечания исправления

Copy link
Collaborator

@titovmx titovmx left a comment

Choose a reason for hiding this comment

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

привет! спасибо за перевод! Оставил свои замечания и предложения. Есть парочка, требующих проверки по всему переводу.


Setting a state variable will queue another render. But sometimes you might want to perform multiple operations on the value before queueing the next render. To do this, it helps to understand how React batches state updates.

Обновление переменной состояния запускает в очередь новый рендер. Но иногда вам может понадобиться выполнить множество операций со значением перед следующим рендером. Чтобы сделать это, стоит понять, как React группирует обновления состояния.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
Обновление переменной состояния запускает в очередь новый рендер. Но иногда вам может понадобиться выполнить множество операций со значением перед следующим рендером. Чтобы сделать это, стоит понять, как React группирует обновления состояния.
Обновление переменной состояния добавляет в очередь новый рендер. Но иногда вам нужно выполнить множество операций со значением перед следующим рендером. Чтобы сделать это, стоит понять, как React группирует обновления состояния.

Пара предложений как может звучать проще + рекомендую сохранить пустые строки вокруг параграфа, чтобы перевод в диффе был строка к строке

Copy link
Collaborator

Choose a reason for hiding this comment

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

и, пожалуйста, проверьте удалённые пустые строки по всему переводу

Copy link
Collaborator

Choose a reason for hiding this comment

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

@isakura313 проблема с удалением пустых строк осталась - это важно, потому что впоследствии будет сложнее исправлять конфликты, если в оригинале что-то поменяется

</Intro>

<YouWillLearn>

* What "batching" is and how React uses it to process multiple state updates
* How to apply several updates to the same state variable in a row
* Что такое "группировка" и как React иcпользует ее для обработки множества обновлений состояния
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
* Что такое "группировка" и как React иcпользует ее для обработки множества обновлений состояния
* Что такое "группировка" и как React иcпользует её для обработки множества обновлений состояния

Пожалуйста, используйте пакет eyo, чтобы найти места, где пропущена буква ё

Copy link
Collaborator

Choose a reason for hiding this comment

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

Этот комментарий также актуален

src/content/learn/queueing-a-series-of-state-updates.md Outdated Show resolved Hide resolved
src/content/learn/queueing-a-series-of-state-updates.md Outdated Show resolved Hide resolved
src/content/learn/queueing-a-series-of-state-updates.md Outdated Show resolved Hide resolved
src/content/learn/queueing-a-series-of-state-updates.md Outdated Show resolved Hide resolved
src/content/learn/queueing-a-series-of-state-updates.md Outdated Show resolved Hide resolved
src/content/learn/queueing-a-series-of-state-updates.md Outdated Show resolved Hide resolved
src/content/learn/queueing-a-series-of-state-updates.md Outdated Show resolved Hide resolved
src/content/learn/queueing-a-series-of-state-updates.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@titovmx titovmx left a comment

Choose a reason for hiding this comment

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

привет! спасибо за перевод! Оставил свои замечания и предложения. Есть парочка, требующих проверки по всему переводу.

@isakura313
Copy link
Author

Обновил с последними замечаниями

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants