*Edited for Clarity*
I have built a daily quiz app. When users return to the app, I need it to rebuild the page so that the conditional checks the lastPlayedDate == TodayDate
As it works now, if a user re-opens the app the next day, the previous day's quiz still shows because the conditional check is not run (no page is being loaded/reloaded)
See the screenshot to get a better picture of what I mean.
Imagine if users come back to this app every day to play daily trivia. If the user opens the app and it is a new day, the app's state or page rebuild needs to happen to show the right content to the user.