You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ( isAutosavingPost && ! isSavingPost ) {
return;
}
// Do action.
});`
But this trigger to get saving post function from core/editor on any changes in editor. I tried console.log to see when it's triggered and found that in some situations, it's made near 200 requests on just typing a word. So, why do not add hook for Gutenberg the same as we have for PHP hook save_post?
The text was updated successfully, but these errors were encountered:
In current point we need to use hook like
`subscribe( () => {
const isSavingPost = select('core/editor').isSavingPost();
const isAutosavingPost = select('core/editor').isAutosavingPost();
if ( isAutosavingPost && ! isSavingPost ) {
return;
}
// Do action.
});`
But this trigger to get saving post function from core/editor on any changes in editor. I tried console.log to see when it's triggered and found that in some situations, it's made near 200 requests on just typing a word. So, why do not add hook for Gutenberg the same as we have for PHP hook save_post?
The text was updated successfully, but these errors were encountered: