Details: We’ve integrated Fabric.js with React to allow drawing on the canvas. However, we now face a challenge in persisting canvas data in a database and retrieving it while retaining custom attributes and event listeners for elements.
.
Tried and expecting: Storing the entire canvas object and fetching it for rendering on project opening. While we were able to render objects on the canvas, we couldn’t retrieve custom attributes or event listeners associated with them.
We’re seeking guidance on how to effectively store and retrieve Fabric.js projects with custom attributes and event listeners intact. Any insights or alternative approaches to achieve this would be greatly appreciated