How to get previous component level data using beforeUpdate lifecycle hooks in strapi

System Information
  • Strapi Version: v4.5
  • Operating System: windows 11
  • Database: postgres
  • Node Version: v16.14.0
  • NPM Version: v8.6.0
  • Yarn Version: v1.22.19

how to get previous component level data using beforeUpdate lifecycle hooks in strapi

To check whether the component data has changed or not

could pls reply for this answer