-
Notifications
You must be signed in to change notification settings - Fork 316
translate escape-hatches.md
to pt-BR
#664
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
acabei de perceber que nao traduzi os comentários dentro dos code snippets. Vou fazer isso, mas já podem ir revisando o restante da PR conforme quiserem edit: done |
* [How to prevent some values from re-triggering Effects](/learn/separating-events-from-effects) | ||
* [How to make your Effect re-run less often](/learn/removing-effect-dependencies) | ||
* [How to share logic between components](/learn/reusing-logic-with-custom-hooks) | ||
* [Como "guardar" informação sem rerrenderizar](/learn/referencing-values-with-refs) |
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.
* [Como "guardar" informação sem rerrenderizar](/learn/referencing-values-with-refs) | |
* [Como "guardar" informação sem re-renderizar](/learn/referencing-values-with-refs) |
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.
De acordo com o acordo ortográfico de 2009, entendo que rerrenderização
é a forma correta
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.
Essa regra ainda se aplica atualmente? Pergunto pois em alguns lugares vi com o uso do hífen como sugeri, mas se ainda se aplica show 🚀
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.
Sim, creio que não está sendo usado porque é uma mudança "recente" da língua. Mas seguindo a norma culta, é o correto
|
||
```js | ||
const ref = useRef(0); | ||
``` | ||
|
||
Like state, refs are retained by React between re-renders. However, setting state re-renders a component. Changing a ref does not! You can access the current value of that ref through the `ref.current` property. | ||
Assim como estado, refs são retidas pelo React entre rerrenderizações. Entretanto, definir estado rerrenderiza um componente. Mudar uma ref, não! Você pode acessar o valor atual de uma ref através da propriedade `ref.current`. |
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.
Assim como estado, refs são retidas pelo React entre rerrenderizações. Entretanto, definir estado rerrenderiza um componente. Mudar uma ref, não! Você pode acessar o valor atual de uma ref através da propriedade `ref.current`. | |
Assim como estado, refs são retidas pelo React entre re-renderizações. Entretanto, definir estado re-renderiza um componente. Mudar uma ref, não! Você pode acessar o valor atual de uma ref através da propriedade `ref.current`. |
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.
De acordo com o acordo ortográfico de 2009, entendo que rerrenderização
é a forma correta
src/content/learn/escape-hatches.md
Outdated
|
||
Effects têm um ciclo de vida diferente dos componentes. Componentes podem se montar, atualizar ou desmontar. Um Effect só pode fazer duas coisas: começar a sincronizar algo e, mais tarde, parar a sincronização. Esse ciclo pode acontecer múltiplas vezes se seu Effect depender de props e estado que possa mudar ao longo do tempo. | ||
|
||
Este Effect depende do valor da prop `roomId`. Props são *valores reativos*, o que significa que podem mudar em uma rerenderização. Note que um Effect *ressincroniza* (e reconecta ao servidor) caso `roomId` seja alterado: |
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.
Este Effect depende do valor da prop `roomId`. Props são *valores reativos*, o que significa que podem mudar em uma rerenderização. Note que um Effect *ressincroniza* (e reconecta ao servidor) caso `roomId` seja alterado: | |
Este Effect depende do valor da prop `roomId`. Props são *valores reativos*, o que significa que podem mudar em uma re-renderização. Note que um Effect *ressincroniza* (e reconecta ao servidor) caso `roomId` seja alterado: |
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.
De acordo com o acordo ortográfico de 2009, entendo que rerrenderização
é a forma correta
Vou adicionar o R que faltou
src/content/learn/escape-hatches.md
Outdated
|
||
All code inside Effects is *reactive.* It will run again if some reactive value it reads has changed due to a re-render. For example, this Effect will re-connect to the chat if either `roomId` or `theme` have changed: | ||
Todo código dentro de Effects é *reativo*. Ele será executado novamente se algum valor reativo lido por ele se alterar por causa de uma rerenderização. Por exemplo, esse Effect irá reconectar ao chat se `roomId` ou `theme` tiverem mudado. |
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.
Todo código dentro de Effects é *reativo*. Ele será executado novamente se algum valor reativo lido por ele se alterar por causa de uma rerenderização. Por exemplo, esse Effect irá reconectar ao chat se `roomId` ou `theme` tiverem mudado. | |
Todo código dentro de Effects é *reativo*. Ele será executado novamente se algum valor reativo lido por ele se alterar por causa de uma re-renderização. Por exemplo, esse Effect irá reconectar ao chat se `roomId` ou `theme` tiverem mudado. |
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.
De acordo com o acordo ortográfico de 2009, entendo que rerrenderização
é a forma correta
Vou adicionar o R que faltou
Co-authored-by: Felipe Silva <[email protected]>
Co-authored-by: Felipe Silva <[email protected]>
Co-authored-by: Felipe Silva <[email protected]>
Size changes📦 Next.js Bundle Analysis for react-devThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
Size changes📦 Next.js Bundle Analysis for react-devThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
1 similar comment
Size changes📦 Next.js Bundle Analysis for react-devThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
Size changes📦 Next.js Bundle Analysis for react-devThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
Obrigado pela review, @buirkan. |
Encontrei pequenos detalhes de ortografia, o resto me parece todo ok! 👍 |
Co-authored-by: Felipe Freitag Vargas <[email protected]>
Co-authored-by: Felipe Freitag Vargas <[email protected]>
Co-authored-by: Felipe Freitag Vargas <[email protected]>
Co-authored-by: Felipe Freitag Vargas <[email protected]>
Size changes📦 Next.js Bundle Analysis for react-devThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
2 similar comments
Size changes📦 Next.js Bundle Analysis for react-devThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
Size changes📦 Next.js Bundle Analysis for react-devThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
Obrigado pela review, @felipefreitag. São pontos que passam fácil depois de traduzir um textão desses haha. Vou abrir PR de outra página daqui uns dias e vou me surpreender se nao cometer ao menos algum deles lá tambem 👩🦳 |
Size changes📦 Next.js Bundle Analysis for react-devThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
Página original: