• We just upgraded the platform on which this website runs! Please inform @Jaxel of any issues.

Managing state between `docData` updates


New member
Is there a way to have access to the previous docData state alongside the new current docData state? If not, is there a way to write to the scoreboard fields through the page JS?

I'm trying to make a scoreboard that keeps track of the time between turns; if that ends up too difficult, I'd be happy with just tracking the number of points scored between turns. I manually manage whose turn it is by flipping between options in a select menu and I'd prefer not to need to do more since turns will change fairly frequently. Of course, I could manually stop and start a timer or manually count the points scored, but it would be far better to be able to do that through code.