Hi everybody,
I am building an application part of which has a 'Quote of the Day' which is meant to refresh every day randomly from a list (stored in an app state variable). The way it works is that I have 2 app state, one with the list and one is empty. I run a custom action which randomly picks a number and I update the empty app state with that index from the list. The only problem is calculating and running this action every new day (even if has not been exactly 24 hours or more since the user opened the app). How do I do that?
Any help is appreciated.
Thanks!