Skip to content

Commit

Permalink
docs: fix typo in using useStore() (#6875)
Browse files Browse the repository at this point in the history
  • Loading branch information
zaynet committed Sep 11, 2024
1 parent ee24c89 commit bb3198f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/flat-pans-crash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@builder.io/qwik': patch
---

FIX: fix typo in using useStore()
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default component$(() => {
<button
onClick$={() => {
// Because store is deep watched, this will trigger a re-render
store.list.push(`Item ${store.list.length}`);
store.list.push(`Item ${store.list.length + 1}`);
}}
>
Add to list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export default component$(() => {
<button
onClick$={() => {
// Because store is deep watched, this will trigger a re-render
store.list.push(`Item ${store.list.length}`);
store.list.push(`Item ${store.list.length + 1}`);
}}
>
Add to list
Expand Down

0 comments on commit bb3198f

Please sign in to comment.