BUG: "storage:end:load" event is not triggered when all components are mounted into the canvas
Question
GrapesJS version
- I confirm to use the latest version of GrapesJS
What browser are you using?
Chrome v91
Reproducible demo link
https://grapesjs.com/demo.html
Describe the bug
How to reproduce the bug? Recently I have to upgrade grapesjs v0.14.62 to the latest version (0.21.8). In the old code, we used "storage:end:load" to do some stuff after all the components have been mounted on the canvas.
But in the current version it won't work the same anymore. As I see in the documents, "storage:end:load" will now be triggered as soon as the storage's load request is done. Is there anyway or other event to achieve the same result as before?
For now I have to use setTimeout insided "storage:end:load" callback, which seems quite uncertain and unreliable in many cases.
What is the expected behavior? "storage:end:load" is triggered after all components have been mounted on the canvas.
What is the current behavior? "storage:end:load" is triggered as soon as the storage's load request is done.
Code of Conduct
- I agree to follow this project's Code of Conduct
Answers (1)
@vian013 please open bug issues only with a reproducible demo link, by a quick check the event seems to work properly
Related Questions and Answers
Continue research with similar issue discussions.
Issue #4503
BUG: Missing inline styles used by CKEditor when adding raw html components
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chromium v96 Reproducible demo link https:...
Issue #6683
BUG: Modals close on mouseup event outside of modal rather than a full click
GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Chrome 143.0.7499.169 Reproducible demo li...
Issue #3883
BUG: GrapesJS export functionality and 'View Code' functionality and the Canvas not operating in a similar manner with regards to hex colors.
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v91 Reproducible demo link https://...
Issue #5378
BUG: Uncaught TypeError: Cannot read properties of undefined (reading 'Canvas') while dragging a component in Layer Manager Panel
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v116.0.5845.97 Reproducible demo li...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.