Unsaved change status on plugin

Hi,

I am building an autosave plugin following below link:
https://www.datocms.com/docs/plugin-sdk/react-datocms-ui

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?

Thanks,
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