Skip to content

Commit

Permalink
fix: 修复layer卸载时解除监听报错bug
Browse files Browse the repository at this point in the history
  • Loading branch information
leiyuanxiang committed Sep 2, 2022
1 parent 8f1d8f5 commit 795a777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layer/hooks/useEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const useEvents = <T extends LayerType>(

unlistenList.forEach((key) => {
// @ts-ignore
ins.off(events[key], props.id, listeners[key]);
ins.off(key, props.id, listeners[key]);
});
};
};

0 comments on commit 795a777

Please sign in to comment.