-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] on_web_resource_request not working in dev mode #5708
Comments
Oh that's a big pitty. It was working before I updated to tauri 1.2.0 so I didn't really think about looking into the docs. I guess something changed under the hood when running |
The only change to |
Yes, that's probably it. I had a file path and it was working before at least without hot-reloading (if I needed hot-reloading I took care of it myself by running my own dev server and then on_web_resource_request was indeed not working). Now my iteration frequency has just dropped a lot :/ Is there a way to disable hot-reloading? |
No, i think it's hard coded. idk if that works but you could try setting If that doesn't work i'd suggest using p.s. feel free to open a feature request asking for a built-in way to disable it (no promises). |
Thank you! I think a feature request would be overkill in this case, especially since |
@matthme next version will have |
Describe the bug
In dev mode, i.e. when running
npm run tauri dev
the methodon_web_resource_request
of theWundowBuilder
seems to be ignored.Reproduction
sh <(curl https://create.tauri.app/sh)
on linux.Vue-ts
as the frontend framework.src-tauri/src/main.rs
:npm run tauri dev
and see that the print statement is not being triggered.npm run tauri build
and see that the print statement is being triggered when running the AppImage.Expected behavior
I expect
.on_web_resource_request()
to also work in dev mode.Platform and versions
Environment
› OS: Ubuntu 22.04 X64
› Node.js: 16.11.1
› npm: 8.0.0
› pnpm: Not installed!
› yarn: 1.22.19
› rustup: 1.25.1
› rustc: 1.64.0
› cargo: 1.64.0
› Rust toolchain: stable-x86_64-unknown-linux-gnu
Packages
› @tauri-apps/cli [NPM]: 1.2.1
› @tauri-apps/api [NPM]: 1.2.0
› tauri [RUST]: 1.2.1,
› tauri-build [RUST]: 1.2.1,
› tao [RUST]: 0.15.6,
› wry [RUST]: 0.22.5,
App
› build-type: bundle
› CSP: unset
› distDir: ../dist
› devPath: http://localhost:1420/
› framework: Vue.js
App directory structure
├─ dist
├─ node_modules
├─ src-tauri
├─ src
├─ .vscode
└─ public
Stack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: