Skip to content

Commit 472d5ba

Browse files
committed
v2.4.0
1 parent 4abe211 commit 472d5ba

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

packages/react-meteor-data/.versions

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ [email protected]
1313
1414
1515
16-
ecmascript@0.15.3
16+
ecmascript@0.16.0
1717
1818
1919
@@ -23,7 +23,7 @@ [email protected]
2323
2424
2525
26-
local-test:[email protected]-beta.2
26+
2727
2828
2929
@@ -39,8 +39,8 @@ [email protected]
3939
4040
4141
42-
react-fast-refresh@0.1.1
43-
42+
react-fast-refresh@0.2.0
43+
4444
4545
4646
@@ -50,7 +50,7 @@ [email protected]
5050
5151
5252
53-
typescript@4.3.5
53+
typescript@4.4.0
5454
55-
webapp@1.12.0
55+
webapp@1.13.0
5656

packages/react-meteor-data/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# CHANGELOG
2-
## v2.4.0, 2021-10-
2+
## v2.4.0, 2021-12-02
33
* Added `useSubscribe` and `useFind` hooks
44

55
## v2.3.3, 2021-07-14

packages/react-meteor-data/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ const isLoading = useSubscribe(needsData ? "my-pub" : null);
262262
263263
#### `useFind(cursorFactory, deps)` Accellerate your lists
264264
265-
The `useFind` hook can substantially speed up the rendering (and rerendering) of lists coming from mongo queries (subscriptions). It does this by controlling document object references. By providing a highly tailored cursor management within the hook, using the `Cursor.observe` API, `useFind` carefully updates only the object references changed during a DDP update. This approach allows a tighter use of core React tools and philosophies to turbo charge your list renders. It is a very different approach from the more general purpose `useTracker`, and it requires a bit more set up. A notable differences is that you should NOT call `.fetch()`. `useFind` requires its factory to return a `Mongo.Cursor` object. You may also return `null`, if you want to conditionally set up the Cursor.
265+
The `useFind` hook can substantially speed up the rendering (and rerendering) of lists coming from mongo queries (subscriptions). It does this by controlling document object references. By providing a highly tailored cursor management within the hook, using the `Cursor.observe` API, `useFind` carefully updates only the object references changed during a DDP update. This approach allows a tighter use of core React tools and philosophies to turbo charge your list renders. It is a very different approach from the more general purpose `useTracker`, and it requires a bit more set up. A notable difference is that you should NOT call `.fetch()`. `useFind` requires its factory to return a `Mongo.Cursor` object. You may also return `null`, if you want to conditionally set up the Cursor.
266266
267267
Here is an example in code:
268268

packages/react-meteor-data/package.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Package.describe({
44
name: 'react-meteor-data',
55
summary: 'React hook for reactively tracking Meteor data',
6-
version: '2.4.0-beta.2',
6+
version: '2.4.0',
77
documentation: 'README.md',
88
git: 'https://github.com/meteor/react-packages',
99
});

0 commit comments

Comments
 (0)