Skip to content

Commit

Permalink
Warn when parent component is being unmounted
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyGiorgio authored and futurepaul committed Jun 20, 2023
1 parent 2d69edd commit 869a968
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/state/megaStore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,10 @@ export const Provider: ParentComponent = (props) => {
}
};

onCleanup(() => {
console.warn('Parent Component is being unmounted!!!');
});

// Fetch status from remote on load
onMount(() => {
// eslint-disable-next-line
Expand Down

0 comments on commit 869a968

Please sign in to comment.