From 4ecb0916afe402ca1dfd708ca8eb574495f704f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20mathieu?= Date: Fri, 27 May 2016 19:31:28 -0400 Subject: [PATCH] Fix #74 --- package.json | 2 +- src/components/Mixin.js | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c2b61b6..1a7d989 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/components/Mixin.js b/src/components/Mixin.js index 025e96d..ce4da08 100644 --- a/src/components/Mixin.js +++ b/src/components/Mixin.js @@ -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); + } + } }); });