Issues with lifecycles and dynamic components

If you are using beforeUpdate lifecycle method, you can fetch the data using the id of the record. you can get the id of the record using event.params.where.id. Once you have all the entries of ingredients, I believe you can calculate the price.