can't update path by fabricPath.set('path', path) #10257
Unanswered
vaynevayne
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The path in options is a string format
But instanceRef.current.path has been parsed into an array format by Fabric.js (this is the internal representation of Fabric.js)
When we update with set(options) again, it may cause format mismatch issues
useEffect(() => {
// 这里改用普通的 useEffect
if (!instanceRef.current) return
}, [options, store])
how can i update path ?
Beta Was this translation helpful? Give feedback.
All reactions