Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up
A ref is used and never updated. If we don't use a ref, too many render occurs (+ infinite loop).
If you open the app the day after with the same runtime session you will have a weird side effect (in addition to the header date being yesterday)
To improve that, we should use a state for today + useEffect that check this with an interval?
Also, we need to check that "Updated at" message always is always ok (currently we could have "Update today at 23:59" while being at ""tomorrow 00:03"