JSON.stringify jank

I discovered that the problem is JSON.stringify, not parse
2 Replies
corporat
corporatOP•3y ago
wtf is this
No description
corporat
corporatOP•3y ago
my fix for this was
JSON.stringify(dragdata, (key,value)=>{
if(typeof value=== "array")
return JSON.stringify(value);
return value;
});
JSON.stringify(dragdata, (key,value)=>{
if(typeof value=== "array")
return JSON.stringify(value);
return value;
});
and then in the implementation of _onDropItemCreate I did an additional parse of arrays 🤷
Want results from more Discord servers?
Add your server