Closed piotrpospiech closed 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.
useFind
I added the initial fetch also to the useEffect hook. It will be called only if the cursor is updated.
useEffect
I can add tests in another PR in which I will fix the test environment. It can be merged and released.
Released 2.5.3
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.