meteor / react-packages

Meteor packages for a great React developer experience
http://guide.meteor.com/react.html
Other
573 stars 157 forks source link

Fix useFind #370

Closed piotrpospiech closed 1 year ago

piotrpospiech commented 1 year ago

Fix https://github.com/meteor/react-packages/issues/369

Data returned by useFind wasn't updated if the cursor was changed. It happened because the initial fetch was called only once.

I added the initial fetch also to the useEffect hook. It will be called only if the cursor is updated.

piotrpospiech commented 1 year ago

I can add tests in another PR in which I will fix the test environment. It can be merged and released.

Grubba27 commented 1 year ago

Released 2.5.3