Hi everyone,
I'm building a collaborative canvas tool using Fabric.js and Wappler. I'm currently facing a frustrating issue where the UI (specifically the Fabric canvas) freezes during a socket-based dmx.parse()
request triggered on window resize.
Here’s the context:
- When the user resizes the browser window, I trigger a resize function.
- Inside that function, I update an html element size and then send the new state using:
dmx.parse(`content.resizeReq.request('resize', { data: ${JSON.stringify(resize_data)}, boid: '${dmx.app.data.query.boid}' })`)
.then((result) => {
// handle response...
});
- However, during the period before the socket response is received, the web page elements like buttons becomes unresponsive — users can't click, select, or interact smoothly. Once the response comes back, everything becomes smooth again.
What I've tried:
- I have tested it with socket.io outside wappler with .emit method and it works fine.
Question:
- Has anyone experienced similar UI blocking issues when using
dmx.parse()
for.request()
calls?
Thanks in advance for any insights!