From 0d6effc6d6f93a9e1cbd6e67e4df5ed09b8027d1 Mon Sep 17 00:00:00 2001 From: "mr. keith" Date: Mon, 9 May 2016 22:57:24 -0700 Subject: [PATCH] Fix crash if a component does not mixin Base - facilitate 3rd-party mixins --- src/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.js b/src/util.js index 7024b6b..e018c46 100644 --- a/src/util.js +++ b/src/util.js @@ -18,7 +18,7 @@ export const ensure = (value, msg) => { export const updateComponent = component => { // Check for document because of this bug: // https://github.com/facebook/react/issues/3620 - if (component._rethinkMixinState.isMounted && typeof document !== 'undefined') { + if (component._rethinkMixinState && component._rethinkMixinState.isMounted && typeof document !== 'undefined') { component.forceUpdate(); } };