From d4e063fe51eab33cb186aa980acfe582b93f59bc Mon Sep 17 00:00:00 2001 From: vicsantizo <68677648+vicsantizo@users.noreply.github.com> Date: Thu, 26 Jan 2023 22:49:01 -0600 Subject: [PATCH] fix(typos): remove misplaced word (#5510) --- beta/src/content/learn/removing-effect-dependencies.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.