Skip to content

Commit 7efe843

Browse files
committed
Release 7.0.4
1 parent b99fd03 commit 7efe843

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
coverage
22
node_modules
33
.DS_Store
4+
package-lock.json

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-facebook",
3-
"version": "7.0.3",
3+
"version": "7.0.4",
44
"description": "Facebook components like a Login button, Like, Share, Comments, Embedded Post/Video, Messenger Chat and others",
55
"author": {
66
"name": "Zlatko Fedor",

src/Initialize.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ class Initialize extends Component<Props> {
1717
};
1818

1919
componentDidMount() {
20-
this._ismounted = true;
20+
this.isMounted = true;
2121
this.prepare();
2222
}
2323

2424
componentWillUnmount() {
25-
this._ismounted = false;
25+
this.isMounted = false;
2626
}
2727

2828
async prepare() {
2929
const { onReady, handleInit } = this.props;
3030
const api = await handleInit();
31-
if (onReady && this._ismounted) {
31+
if (onReady && this.isMounted) {
3232
onReady(api);
3333
}
3434
}

0 commit comments

Comments
 (0)