diff --git a/beta/src/content/learn/removing-effect-dependencies.md b/beta/src/content/learn/removing-effect-dependencies.md index 7b4815f4..5819d7de 100644 --- a/beta/src/content/learn/removing-effect-dependencies.md +++ b/beta/src/content/learn/removing-effect-dependencies.md @@ -2027,7 +2027,7 @@ label, button { display: block; margin-bottom: 5px; } -There's more than one correct way to solve this, but the here is one possible solution. +There's more than one correct way to solve this, but here is one possible solution. In the original example, toggling the theme caused different `onMessage` and `createConnection` functions to be created and passed down. Since the Effect depended on these functions, the chat would re-connect every time you toggle the theme.