Ok, I’ve noticed now that you want to get all fields data when you’re in a plugin.
There’s a hook for that:
import { useContentManagerEditViewDataManager } from 'strapi-helper-plugin';
const { modifiedData } = useContentManagerEditViewDataManager()
useEffect(() => {
console.log(modifiedData.changedFieldValue)
}, [modifiedData])