Skip to content

Commit

Permalink
fix(webgl): clear cache in before leave route
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed Feb 6, 2023
1 parent 9b49ed0 commit d0d90a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/better-write-app/src/use/webgl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ export const useWebGL = () => {
})

onBeforeUnmount(() => {
THREE.Cache.clear()

isLoaded.value = false
})
}
Expand Down

0 comments on commit d0d90a7

Please sign in to comment.