Skip to content

Commit 72ab969

Browse files
committed
fix(core): app unmout to close sandbox
1 parent e439ec4 commit 72ab969

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/browser-vm/src/pluginify.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ function createOptions(Garfish: interfaces.Garfish) {
136136
// If the app is uninstalled, the sandbox needs to clear all effects and then reset
137137
afterUnmount(_, appInstance) {
138138
if (!appInstance.vmSandbox) return;
139-
appInstance.vmSandbox.reset();
139+
appInstance.vmSandbox.close();
140140
sandboxMap.del(appInstance.vmSandbox);
141141
},
142142

0 commit comments

Comments
 (0)