How can I trigger a javascript function after a post update on edit post screen in wordpress admin panel?

I think those articles will help you to deal with Gutenberg or WordPress v5.0 Metaboxes

Adapt Your Plugin for Gutenberg Block API – Part 1

Adapt Your Plugin for Gutenberg Block API – Part 2

The Final Project Hello Gutenberg