Ionviewwillenter does not auto refresh

i used ionic 5 for a project and i implemented ionviewwillenter to load data and trigger a refresh when the database updates, but it does not works, please is there another way to implement that because that used to work in ionic 3

Have you seen this?