There seems to be a weird bug in the browsers where .setUTCDate() does not work and causes infinite loop in Calendar component. The easiest solution would be to use date-fns for handling dates rather that native js since it seems to be not predictable based on the timezone.
.setUTCDate() works fine in CET:
.setUTCDate() doesn't update in EST and causes an infinite loop:
There seems to be a weird bug in the browsers where
.setUTCDate()
does not work and causes infinite loop in Calendar component. The easiest solution would be to use date-fns for handling dates rather that native js since it seems to be not predictable based on the timezone..setUTCDate() works fine in CET:
.setUTCDate() doesn't update in EST and causes an infinite loop: