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

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3b0a1-2c26b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3b0a1-2c26b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?