From 7efe84386cc3e42f4719c617e470cc6574667f0f Mon Sep 17 00:00:00 2001 From: Zlatko Fedor Date: Sun, 10 Mar 2019 22:33:11 +0100 Subject: [PATCH] Release 7.0.4 --- .npmignore | 1 + package.json | 2 +- src/Initialize.jsx | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.npmignore b/.npmignore index b600741..89b3779 100644 --- a/.npmignore +++ b/.npmignore @@ -1,3 +1,4 @@ coverage node_modules .DS_Store +package-lock.json \ No newline at end of file diff --git a/package.json b/package.json index 6b38c0c..7228a98 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-facebook", - "version": "7.0.3", + "version": "7.0.4", "description": "Facebook components like a Login button, Like, Share, Comments, Embedded Post/Video, Messenger Chat and others", "author": { "name": "Zlatko Fedor", diff --git a/src/Initialize.jsx b/src/Initialize.jsx index 7bb7723..2f38871 100644 --- a/src/Initialize.jsx +++ b/src/Initialize.jsx @@ -17,18 +17,18 @@ class Initialize extends Component { }; componentDidMount() { - this._ismounted = true; + this.isMounted = true; this.prepare(); } componentWillUnmount() { - this._ismounted = false; + this.isMounted = false; } async prepare() { const { onReady, handleInit } = this.props; const api = await handleInit(); - if (onReady && this._ismounted) { + if (onReady && this.isMounted) { onReady(api); } }