Mini Program, how does a status change affect a page that has been cut in the background

for example: a collection list, I click one of them to go in and cancel the collection, and then return to the collection list, how to refresh the list at this time?
what I"m doing now is to write the API for requesting favorites list in Mini Program"s onShow, so that the list will be refreshed no matter when I enter the page or cut from the background to the foreground, but I think it"s strange. Is there a better way?
do I actually have the same question about Android APP?

Sep.18,2021

you want to reduce the number of requests when you return, right? you can cancel it like this
. If the return is successful, it means the cancellation is successful. The ID of the item stored locally
returns to the list page to query the local storage and update

.
Menu