Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
titovmx
reviewed
Jun 16, 2025
Collaborator
titovmx
left a comment
There was a problem hiding this comment.
спасибо за перевод! оставил один комментарий на подумать
| </Sandpack> | ||
|
|
||
| Without `flushSync`, the print dialog will display `isPrinting` as "no". This is because React batches the updates asynchronously and the print dialog is displayed before the state is updated. | ||
| Без `flushSync` диалог печати будет показывать `isPrinting` как "no". Это происходит потому, что React группирует обновления асинхронно, и диалог печати отображается до обновления состояния. |
Collaborator
There was a problem hiding this comment.
Suggested change
| Без `flushSync` диалог печати будет показывать `isPrinting` как "no". Это происходит потому, что React группирует обновления асинхронно, и диалог печати отображается до обновления состояния. | |
| Без `flushSync` диалог печати будет показывать `isPrinting` как "нет". Это происходит потому, что React группирует обновления асинхронно, и диалог печати отображается до обновления состояния. |
здесь отсылка к переведённому примеру
| * `flushSync` may run pending Effects and synchronously apply any updates they contain before returning. | ||
| * `flushSync` may flush updates outside the callback when necessary to flush the updates inside the callback. For example, if there are pending updates from a click, React may flush those before flushing the updates inside the callback. | ||
| * `flushSync` может значительно ухудшить производительность. Используйте его с осторожностью. | ||
| * `flushSync` может заставить ожидающие границы Suspense показать состояние `fallback`. |
Collaborator
There was a problem hiding this comment.
тут можно перевести и Suspense, и fallback (как было выше в переводе сделано)
для обоих терминов у нас есть согласованный перевод в правилах:
Suspense - задержка
fallback - запасной
либо уточнить, что речь идёт про компонент и его проп соответственно
Collaborator
There was a problem hiding this comment.
ещё может быть вместо "границы" использовать "условия"? Как-будто чуть более понятно должно быть.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.