Skip to content

Commit

Permalink
feat: fix set = null
Browse files Browse the repository at this point in the history
  • Loading branch information
theajack committed Sep 7, 2023
1 parent ba488b5 commit 7fc936e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
8 changes: 1 addition & 7 deletions packages/client-reactive/src/cleaner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,15 @@ export function createCleaner () {
let cleanMap: any[] = [];

const cleaner: ICleaner = {
// map () {return cleanMap;},
clean () {
cleanMap.forEach(clean => {
clean();
});
// @ts-ignore
cleanMap = null;
// @ts-ignore
set = null;
},
collect (clean: any) {
if (!cleanMap) {
console.warn('cleanMap is null');
return;
}
if (!cleanMap) return;
cleanMap.push(clean);
}
};
Expand Down
1 change: 0 additions & 1 deletion packages/compiler-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"registry": "https://registry.npmjs.org/"
},
"dependencies": {
"@babel/standalone": "^7.22.9",
"alins": "^0.0.25",
"alins-compiler-core": "^0.0.25"
},
Expand Down

0 comments on commit 7fc936e

Please sign in to comment.