Skip to content

Commit 0b313ce

Browse files
committed
fix: initialize latestActionEpoch to 0 to prevent race condition
1 parent b4df50f commit 0b313ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/django_unicorn/static/unicorn/js/component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class Component {
5959
this.initPolling();
6060

6161
// epoch is the time in milliseconds when the packet was created
62-
this.latestActionEpoch = new Date().getTime();
62+
this.latestActionEpoch = 0;
6363

6464
this.callCalls(args.calls);
6565
}

0 commit comments

Comments
 (0)