The current_time assignment is only used in the Results Component countdown, so it doesn't make sense to initialize it before in the mount function. Additionally, it's a better idea to send current_time to the client and handle it there, rather than in the LiveView server, as it can be a heavy workload.
The current_time assignment is only used in the Results Component countdown, so it doesn't make sense to initialize it before in the mount function. Additionally, it's a better idea to send current_time to the client and handle it there, rather than in the LiveView server, as it can be a heavy workload.