Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

80
Views
Remove fabric object after json stringify without rerendering the canvas

I'm building a collaborative whiteboard app and I want to remove a fabric object from another user's canvas. I am using socket.io to send changes to other users and adding objects works fine, but there is a problem with removing. How can I do this without re-rendering the canvas, because I've set the background image to canvas and when i re-render the canvas the background image is not visible for some time.

Working code for adding object to canvas:

socket.current.on("object:added", (object) => {
  isRendering.current = true;
  fabric.util.enlivenObjects([JSON.parse(object)], (objects) => {
    objects.forEach((o) => {
      editor.canvas.add(o);
    });
    isRendering.current = false;
  });
});

I want to make something like this, but to remove object from canvas.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!