How to distinguish between a successful or invalid store?
@csb346 yes, you're right, there is no storage:success:store, the event storage:end:store is correctly called even in case of errors, but being the last called you can make use of a flag variable
Read full answer below ↓Question
Hi! I'm integrating GrapesJS ina laravel app and so far so good. After configuring remote load and storage, I'm trying to show a notification after any store (auto or manual). Following the API documentation I got that easily: editor.on('storage:end:store', () => { showNotification() }); This works fine. Then I tried to show a different notification in case of a remote error like this: editor.on('storage:error:store', () => { showErrorNotification() }); It's working, but in case of an error it shows both the notifications. I think there is no storage:success:store event. Is there any way to a...
Answers (1)
@csb346 yes, you're right, there is no storage:success:store, the event storage:end:store is correctly called even in case of errors, but being the last called you can make use of a flag variable
Related Questions and Answers
Continue research with similar issue discussions.
Issue #849
Ability to unload and destroy the editor instance or reload the config options?
In my use case, I'm trying to change the store and load URLs used by the remote storage manager dynamically. As far as I can tell, the edit...
Issue #3406
How to create a custom storage manager, it doesnt set saved data from canvas, after reloading the page
Hello everyone, i want to save data from canvas to redux store, and it works, but after reloading the page, storage load method , doesnt se...
Issue #4370
LayerManager becomes unresponsive after StorageManager.load()
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Chrome 102Reproducible demo link https://cod...
Issue #4371
All editors broken after last update that broke storage manager.
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Reproducible demo link https://www....
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins →Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.
Browse premium plugins →Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.