-
|
Using useMagicBellEvent, it triggers the my callback twice with same data object - the id is also same. Here my exact code snippet,
I am using this like this ^^ If it helps ->Whole code |
Beta Was this translation helpful? Give feedback.
Answered by
smeijer
Jan 9, 2024
Replies: 1 comment 2 replies
-
|
Hi @harsh-kp , Is it invoked twice in development mode, or do you experience the same problem in production? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've tried to reproduce your issue, but the hooks are just called once in my case. Are you able to create and share a small reproduction?
Here is a video where you see the code (removed unrelated parts) you shared earlier, and the result in three browsers. Chrome, Firefox, and Safari. You see that all browsers log only one hook call.
no-second-calls.mp4