refactor: modify canvas cleanup func
This commit is contained in:
parent
05a2d6abd0
commit
2992e4bc40
@ -38,7 +38,8 @@ export function useCanvas(id) {
|
||||
setCanvasForEvent(c)
|
||||
|
||||
return () => {
|
||||
c.dispose()
|
||||
// c.dispose()
|
||||
c.clear()
|
||||
}
|
||||
}, [])
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user