Open computeone opened 1 year ago
How about this?
const material = useMemo(() => Material.fromType(Material.ColorType, { ... }), []);
// ...
<Polyline material={material} />
This will still report an error because the material was destroyed when removed
using useMemo doesn't work, it still reports an error
This is a bug not a question!
Any update for this issue ? I have same error like screenshot below: