wp_schedule_single_event issue with save_post hook in gutenberg

I am using the "save_post" hook to call wp_schedule_single_event. Everything works as expected with the classic editor, however when I try a post in gutenberg there isn’t actually a cron entry that is getting created. I know it’s still calling the hook since it’s updating some post meta values. Any ideas why the cron entry is not saving with the wp_schedule_single_event call?

`save_post` not updating correctly on custom post type

I am using WooCommerce Subscriptions (custom post type), and want to run a custom function when a subscriptions is updated through WP-admin. For that I am using the following WordPress function:

add_action( 'save_post_shop_subscription', 'lh_admin_subscription_updated', 10, 3 ); function lh_admin_subscription_updated($ post_ID, $ post, $ update) { $ subscription = wcs_get_subscription( $ post);

The problem is when I get the subscription from the $ post variable, it gets the details before the update. And that doesn’t help me much, as I need to get the changes that was made cause I am going to use this in a custom function.

How to get the changed details for a post object when using save_posts_?