Unsaved change status on plugin


I am building an autosave plugin following below link:

On my plugin I need to check if any filed got change.

On the edit page of datocms I noticed on editing any field the status is changed to “Published (unsaved changes)” and if edited back, then the “unsaved changes” disappear.
Is it possible to get that status through “ctx” on my plugin?

Jyotirmoy Biswas

You could use an useEffect with ctx.formValues as dependency to trigger your “something changed” event, right?

Ok. Thanks for your feedback.

Thanks again,
Jyotirmoy Biswas