Skip to content

Commit

Permalink
clear services when destroying component
Browse files Browse the repository at this point in the history
  • Loading branch information
mimecorg committed Sep 4, 2024
1 parent 7b8a6f5 commit db414ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/leaner/src/web/components.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export function destroyContext( context ) {
context.destroy = null;
}

context.mounted = null;
context.mount = null;

if ( context.refs != null ) {
for ( const ref of context.refs )
Expand All @@ -128,6 +128,8 @@ export function destroyContext( context ) {
destroyContext( child );
context.children = null;
}

context.services = null;
}

export function provide( key, value ) {
Expand Down

0 comments on commit db414ac

Please sign in to comment.