inProgress-team / inProgress-team/react-native-meteor
Only changes to the subscription data triggers a re-render
- Dominant language
- JavaScript
- Stars
- 688
- Forks
- 200
- PR merge metrics
- No merged PRs in 30d
Description
I have some basic boilerplate code --
``` javascript
export default createContainer(function(params) {
var handle = Meteor.subscribe('Feed');
return {
'currentUser': Meteor.user(),
'ready': handle.ready(),
};
}, Home);
```
I also have a `` where the `renderRow` method includes references to `currentUser`.
However, the `dataSource` supplied to by `` only references the Mongo live query data. Since it doesn't reference `Meteor.user()`, *only* changes to the subscription data will cause a re-render.
Can we start a discussion about this?
I offer one solution- the internal `dataSource` could be altered to invalidate when `Meteor.user()` changes?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.