From 09fd728c0df34b87e5d9ef8d78e942220116ccfe Mon Sep 17 00:00:00 2001 From: Eldad Bercovici Date: Mon, 22 Mar 2021 19:09:35 +0200 Subject: [PATCH] Fix typo in docs (#182) Co-authored-by: Matt Sutkowski --- docs/concepts/queries.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/concepts/queries.md b/docs/concepts/queries.md index 2dfd9fc9ac..8659b2f0fb 100644 --- a/docs/concepts/queries.md +++ b/docs/concepts/queries.md @@ -115,7 +115,7 @@ The way that this component is setup would have some nice traits: ### Selecting data from a query result -Sometimes you may have a parent component that is subscribed to a query, and then in a child component you want to pick an item from that query. In most cases you don't want to perform an additional request for a `getItemById`-type query when you know that you already have the result. `selectFromResult` allows you to get a specific segment from a query result in a performant manner. When using this feature, the component will not rerender unless the underlying data of the selected item has changed. If the selected item is one elemnt in a larger collection, it will disregard changes to elements in the same collection. +Sometimes you may have a parent component that is subscribed to a query, and then in a child component you want to pick an item from that query. In most cases you don't want to perform an additional request for a `getItemById`-type query when you know that you already have the result. `selectFromResult` allows you to get a specific segment from a query result in a performant manner. When using this feature, the component will not rerender unless the underlying data of the selected item has changed. If the selected item is one element in a larger collection, it will disregard changes to elements in the same collection. ```ts title="Using selectFromResult to extract a single result" function PostsList() {