Closed daydream123 closed 5 months ago
Thanks for reporting this. Sounds like it's reloading on resume. Is there a way for you to confirm this? Thanks.
Thanks for reporting this. Sounds like it's reloading on resume. Is there a way for you to confirm this? Thanks.
Yes, my temporary solution is to save my workflow step enum
in backend, after resume from sleep mode, I'll query the saved step in vue's onMounted
, and then get the related data
with that step enum
from backend.
This approach can solve the problem, it's a bit cumbersome. I've been unsure of a more elegant solution
I couldn't find anything in the webview2 feedback repo about this. I was hoping there was some sort of snapshotting feature
Webview下会冻结web状态,我用onshow的时候重新加载这个路由的页面就可以了。web页面休眠这个特性,没办法,go不能主动更新web状态。还有一种解决办法就是用go-webview代替mac的webview,你可以试试。
Webview下会冻结web状态,我用onshow的时候重新加载这个路由的页面就可以了。web页面休眠这个特性,没办法,go不能主动更新web状态。还有一种解决办法就是用go-webview代替mac的webview,你可以试试。
Thanks for your suggestion~
Description
Every time the Windows computer resumes from sleep mode, the data in the app window is no longer displayed. However, the data is still held in memory by Go because I can retrieve the "lost" data by calling the Go API from the frontend. It seems that the WebView memory has been reclaimed.
To Reproduce
Expected behaviour
Like other Apps developed with native gui framework, data showing in window should not be reclaimed after resume from sleep mode.
Screenshots
No response
Attempted Fixes
No response
System Details
Additional context
No response