Skip to content

Commit

Permalink
Release 7.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
seeden committed Mar 10, 2019
1 parent b99fd03 commit 7efe843
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
coverage
node_modules
.DS_Store
package-lock.json
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 3 additions & 3 deletions src/Initialize.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ class Initialize extends Component<Props> {
};

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);
}
}
Expand Down

0 comments on commit 7efe843

Please sign in to comment.