#Tauri not redrawing webview? Tao issue?

12 messages · Page 1 of 1 (latest)

inland light
#

I've got an Angular15 app with Tauri.

When a user request TTS, it plays audio on the Rust side and then I emit an event when the audio is done so the user sees the complete state.

Despite looking at my Angular state and all its logs say the state is up-to-date, the rendered view does not reflect that until a click is clicked.. anywhere.

I tested my front-end in the browser for sanity and it works as expected there.

Is there something I can do to help the redraw?

inland light
#

Using change ref detection to run a detect change after setting new state helps. But should not be required.

Chalking this up to something happening to zone.js inside of tauri

visual gust
#

I tested my front-end in the browser for sanity and it works as expected there.
Only in Firefox? If so, please also test it in Edge, it's the closest browser to the webview used on windows

inland light
#

Sure lemmie test edge.

#

Yeah still works as expected.

visual gust
#

then idk what happens either 🤔 Not aware of any general problems in that regard.

inland light
#

Discussed it with some other Angular friends and it's just thought to be zone.js acting funky inside of Tauri's webview. If I come across anything new I'll update this thread, but besides that my solution is invoking change detection manually.

#

Besides that been loving Tauri. 😄 Much better experience over electron IMO so far. :

visual gust
inland light
#

I've also tried async piping the observable instead of subscribing, but it was for naught.

The area linked here is where I get my event from Rust and update the "history" item.
I know the state history updates fine using Redux tools, and some simple console logs.
https://github.com/Uhuh/tts-helper/blob/main/src/app/shared/services/history.service.ts#L18

Here is what's listening to the state changes.
https://github.com/Uhuh/tts-helper/blob/main/src/app/shared/components/history/history.component.ts#L20

visual gust
#

This is indeed super weird 🤔