diff --git a/README.md b/README.md index 2bd6308..1b16f56 100644 --- a/README.md +++ b/README.md @@ -126,7 +126,7 @@ export class MyComponent { store.mapDispatchToProps(this, { changeName }); } - componentDidUnload() { + disconnectedCallback() { this.unsubscribe(); }