From 4b866da026ae1b264c134eba99b4bb29e1c41656 Mon Sep 17 00:00:00 2001 From: Miquel Date: Thu, 8 Oct 2020 20:18:07 +0200 Subject: [PATCH] Fix deprecated componentDidUnload Since Stencil@2.0 componentDidUnload is deprecated: - componentDidUnload: use disconnectedCallback instead of componentDidUnload (https://github.com/ionic-team/stencil/commit/4e45862f73609599a7195fcf5c93d9fb39492154) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }