Skip to content

Commit aaf080b

Browse files
committed
docs: typo
1 parent fe28707 commit aaf080b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ This hook returns the current database client with some helpful functions for sy
185185
- `client.transactSilently([{item: {name: ...}}])` like `transact()` only it will not trigger any listeners.
186186
- Use this to sync data from your backend into the client.
187187
- `client.entity(id or { thing: { attr: 'unique value' } })` like `useEntity`, but **returns a promise**. Get an entity in a callback or other places where a React hook does not make sense.
188-
- The entity returned by this function **will NOT live update the parent React component** its data changes. If you want reactive updates we recommend using `useEntity`.
188+
- The entity returned by this function **will NOT live update the parent React component** when its data changes. If you want reactive updates we recommend using `useEntity`.
189189
- `client.query({ $find: 'thing', $where: { thing: { name: '$any' } } })` like `useQuery`, but **returns a promise**. Perform a query in a callback or other places where a React hook does not make sense.
190190
- The entities returned by this function **will NOT live update the parent React component** when their data changes. If you want reactive updates we recommend using `useQuery`.
191191

docs/0400|API.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ This hook returns the current database client with some helpful functions for sy
141141
- `client.transactSilently([{item: {name: ...}}])` like `transact()` only it will not trigger any listeners.
142142
- Use this to sync data from your backend into the client.
143143
- `client.entity(id or { thing: { attr: 'unique value' } })` like `useEntity`, but **returns a promise**. Get an entity in a callback or other places where a React hook does not make sense.
144-
- The entity returned by this function **will NOT live update the parent React component** its data changes. If you want reactive updates we recommend using `useEntity`.
144+
- The entity returned by this function **will NOT live update the parent React component** when its data changes. If you want reactive updates we recommend using `useEntity`.
145145
- `client.query({ $find: 'thing', $where: { thing: { name: '$any' } } })` like `useQuery`, but **returns a promise**. Perform a query in a callback or other places where a React hook does not make sense.
146146
- The entities returned by this function **will NOT live update the parent React component** when their data changes. If you want reactive updates we recommend using `useQuery`.
147147

0 commit comments

Comments
 (0)