Data is not seen in the lifecycle hooks for the component inside a collection

I am using strapi v4.5.0 and although the strapi.requestContext.get() returns me the component data in the beforeUpdate lifecycle hook, it returns me the updated component data whereas I need the component data before it got updated.
So I’m getting the exact same updated component data in the beforeUpdate as well as afterUpdate hooks with strapi.requestContext.get()
Does anyone know how I can get previous component data from lifecycle hook? Please help

1 Like