I have a collection called 'articles' with the schema shown in the picture below. The 'isRecommended', 'isSaved', and 'isPopular' fields determine whether the article shows up under the Recommended, Saved, or Popular category on the first_aid page.
In the article_1 page, when the user clicks the save (down arrow) button on the upper right, I want the 'isSaved' field of the 'articles' document to be updated to true so that the article appears under the Saved category:
I used the following app states: 'isRecommendedArticle', 'isSavedArticle', and 'isPopularArticle' determine whether the user clicked the Recommended, Saved, or Popular category on the first_aid page. 'isSaved' determines whether the user clicked the save (down arrow) button on the upper right of the article_1 page: