Best practice for keeping timer running in PWA
问题 I am building a progressive web app using React, the concept of which revolves around keeping a timer running. For context, the app is for home-brewers to keep track of when hops and other additions need to be added to their boil during their brew. Additions are added with a certain amount of time remaining in the boil, i.e. 1 oz Citra hops at 20 minutes remaining. I'm using JavaScript's setInterval to "tick" the timer, which is an elapsedSeconds state property that drives the rest of the