Skip to content

Commit

Permalink
Fix #74
Browse files Browse the repository at this point in the history
  • Loading branch information
Théo mathieu committed May 27, 2016
1 parent db7bccd commit 4ecb091
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-meteor",
"version": "1.0.0-rc6",
"version": "1.0.0-rc7",
"description": "Full Meteor Client for React Native",
"main": "src/Meteor.js",
"scripts": {
Expand Down
7 changes: 6 additions & 1 deletion src/components/Mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,12 @@ class MeteorDataManager {
c.stop();
// Calling forceUpdate() triggers componentWillUpdate which
// recalculates getMeteorData() and re-renders the component.
component.forceUpdate();
try {
component.forceUpdate();
} catch(e) {
console.error(e);
}

}
});
});
Expand Down

0 comments on commit 4ecb091

Please sign in to comment.