Skip to content

Commit 160d094

Browse files
authored
Merge pull request #81 from gitkola/patch-1
Destructure tags from meta in Document component
2 parents 0d43341 + 21403d4 commit 160d094

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

www/src/content/docs/store.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const tagsStore = documentStore.select("meta").select("tags");
6464

6565
function Document() {
6666
// Update your UI with the store's current state
67-
const { title, tags } = useStoreValue(documentStore);
67+
const { title, meta: { tags } } = useStoreValue(documentStore);
6868
return (
6969
<div>
7070
{title} {tags.join(", ")}

0 commit comments

Comments
 (0)