Igor Talpa
Igor Talpa
@mirabledictu You can use the `serve-static` package. ```typescript import serveStatic from 'serve-static' // Available from / app.use(serveStatic(`${root}/dist/client`)) // Available from /prefix app.use('/prefix', serveStatic(`${root}/dist/client`)) ```
> ``` > tauri::WindowEvent::Resized(size) => { > let monitor = event.window().current_monitor().unwrap().unwrap(); > let screen = monitor.size(); > println!("{:?}, {:?}", size, screen); > if size == screen { > println!("{}", true);...
This code works, but it's really not a good solution. ```rust // main.rs tauri::Builder::default() .on_window_event(|event| match event.event() { tauri::WindowEvent::Resized(_) => { event.window().emit_all("resize", "").unwrap(); } _ => {} }) // .setup...
@lucasfernog can you fix the delay?
@lucasfernog By delay I meant update fullscreen state before the resize event 😀
>   > > Works without provide/inject [StackBlitz](https://stackblitz.com/edit/github-ypbf5b-y32kuj). Yes, the issue is happening, when `provide` `inject` is used. Passing props to deep nested routes is not convenient.
@danielroe https://stackblitz.com/edit/github-kcptvx?file=app.vue same thing is happening, even without provide/inject, when the route is dynamically nested Try going through `/users/baz` -> `/users/baz/foo`
@danielroe The problem is still there. Before route changes, it clears the page. It shouldn't be that way. https://user-images.githubusercontent.com/24970784/190124328-56a10749-c480-450e-b48b-33e7929ca3ad.mov
@danielroe Please take a look a [this ](https://stackblitz.com/edit/nuxt-starter-vbu67j?file=app.vue) When leaving nested users/id, it clears out the page. https://user-images.githubusercontent.com/24970784/190633458-9ccbf568-f26a-42ac-b184-adc7ce73d62a.mov
> You should not share a key between the pages. Set it to `user-${route.params.id}` or something. @danielroe I updated the keys, but nothing has changed.. Try out yourself, please.