meteor / meteor/react-packages
react-meteor-data: handle.ready() is always false
- Dominant language
- JavaScript
- Stars
- 575
- Forks
- 168
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 1
Description
According to the docs, this should work:
```js
const listLoading = useTracker(() => {
// Note that this subscription will get cleaned up
// when your component is unmounted or deps change.
const handle = Meteor.subscribe('todoList', listId);
return !handle.ready();
}, [listId]);
```
However, if I try it out, the returned value is always true, i.e. ready() is always false.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the issue from the useTracker example with Meteor.subscribe('todoList', listId), then trace how the returned subscription handle reaches handle.ready(). Compare the observed state with the documented expectation and verify that ready() reports the subscription's actual readiness without breaking cleanup when the component unmounts or listId changes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100