This repository was archived by the owner on Jul 6, 2025. It is now read-only.
Repository navigation
BroadcastChannel.onMessage() runs multi-times. Why? #500
Answered
by
ije
sinyo-matu
asked this question in
Q&A
|
Hi everyone. I write BroadcastChannel.onMessage(handler) in my server.ts file. But when an other BroadcastChannel instance (constructed in a route request hander) send one message, Anybody know why this behavior happen? |
Answered by
ije
Jul 17, 2022
Replies: 2 comments
|
It seems like this behavior is caused by dev mode. |
0 replies
|
dev will re-import the server.ts with random query when it changes, the 'side effect' wouldn't be removed automatically |
0 replies
Answer selected by
sinyo-matu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
dev will re-import the server.ts with random query when it changes, the 'side effect' wouldn't be removed automatically