Building a complex countdown table column
I'm trying to build a countdown into a table column. I'm currently using
The problem is that the countdown column will not adjust to the correct time. The countdown just continues from whatever the state of the column was when the page was first loaded.
ViewColumn to do this with some alpine code to handle updating the remaining time. The table is displaying records from a ReverseAuction table. The ReverseAuction model has an attribute to calculate what time that auction will end because users in the system can take actions which would change the end time. I call this attribute true_ends_at. I have the table polling every 10 seconds to check for updates made by other users. If I output the true_ends_at timestamp in a table column, I see that this is correctly updating when other users affect the ending time. The problem is that the countdown column will not adjust to the correct time. The countdown just continues from whatever the state of the column was when the page was first loaded.