diff --git a/examples/simple-ecommerce/customize/custom-relation-tree_toOne.js b/examples/simple-ecommerce/customize/custom-relation-tree_toOne.js index 656ee3b2..2b12ddee 100644 --- a/examples/simple-ecommerce/customize/custom-relation-tree_toOne.js +++ b/examples/simple-ecommerce/customize/custom-relation-tree_toOne.js @@ -31,7 +31,7 @@ export default class RelationTree extends PureComponent { this.fetchData(); } - UNSAFE_componentWillUnmount() { + componentWillUnmount() { if (this.subscription) { this.subscription.unsubscribe(); }