-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Labels
status: needs triageThis issue needs to triage, applied to new issuesThis issue needs to triage, applied to new issuestype: bug
Description
Describe the bug
Using yesterday's alpha build (2.0.0-alpha.17)
// app: AppHandle
app.emit(EVENT_NAME, payload_object).ok();Does not trigger an event in a window with an active listener
Reproduction
Use an apphandle to emit a global event:
// app: AppHandle
app.emit(EVENT_NAME, payload_object).ok();Listen to the event from JS:
appWindow.listen("EVENT_NAME", (event) => { ... });Expected behavior
No response
Platform and versions
[✔] Environment
- OS: Windows 10.0.19044 X64
✔ WebView2: 118.0.2088.76
✔ MSVC: Visual Studio Community 2022
✔ rustc: 1.72.0 (5680fa18f 2023-08-23)
✔ cargo: 1.72.0 (103a7ff2e 2023-08-15)
✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
- node: 18.15.0
- npm: 9.6.4
[-] Packages
- tauri [RUST]: 2.0.0-alpha.17
- tauri-build [RUST]: 2.0.0-alpha.11
- wry [RUST]: 0.34.2
- tao [RUST]: 0.23.0
- tauri-cli [RUST]: 2.0.0-alpha.16
- @tauri-apps/api [NPM]: 2.0.0-alpha.11
- @tauri-apps/cli [NPM]: 2.0.0-alpha.17
[-] App
- build-type: bundle
- CSP: unset
- distDir: ../dist
- devPath: http://localhost:1420/
- framework: React
- bundler: Vite
Stack trace
No response
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
status: needs triageThis issue needs to triage, applied to new issuesThis issue needs to triage, applied to new issuestype: bug