background-hooks script is sending two messages to content-hooks when it is expected to send one #8843
Replies: 3 comments 9 replies
-
Sometimes this is also sending multiple messages. I am running into similar issues while running https://github.com/smolinari/quasar-bex-todo-app. |
Beta Was this translation helpful? Give feedback.
-
@daveavi I would appreciate it if you could link your repository, and write out the steps to reproduce this issue. Furthermore, I saw that you used quasar V1, so I created a merge request on GitLab where I added a prototype so you can try and see if this issue still exists on V2. Finally, I went ahead and recorded a video of how the extension behaves on my personal computer from the latest master commit on |
Beta Was this translation helpful? Give feedback.
-
Hi @daveavi I had same issue in my first try using BEX Mode in Quasar. But then I've managed to trick it using this code: function defaultThrottle(throttled) {
return throttle(throttled, 100, { trailing: false });
}
this.$q.bex.on('bex.toggle.toolbar', defaultThrottle(this.toggleToolbar)); |
Beta Was this translation helpful? Give feedback.
-
Hello!
Currently, I am writing a basic Quasar BEX application to get myself more familiar with the framework. In my background-hooks script, I have an on-click listener that activates/deactivates my Quasar app accordingly. I am running into an issue where when I click on my extension icon once to remove my Qusar app off the web page, it sends two messages, where it removes the Quasar app but it brings it back up again. It looks like my background- hooks script is sending the message twice off one click and I am not sure why. Here is the code:
I would love to know why this behavior is occurring so I can have my Quasar App open/close normally.
Thanks,
Avi Dave
Beta Was this translation helpful? Give feedback.
All reactions