I have an odd bug where I am "switching" between two windows on logout. Close the main window, open the login window. Done in reverse order to not accidentally make tauri think we ran out of windows and it should shut down.
This works usually, expect in one case where for no reason at all it explodes the process entirely. This has got me thinking, what is even the use for static windows? I don't know any software in the world that has more than a single window open by default in a static manner. Not a single one. With my current understanding of windows in tauri, this means that the "static windows" features is practically vestigial, and given enough time 100% of apps will have 0 static windows. So my natural conclusion was that I must have a skewed understanding, because it would be odd to have a feature that basically does not do contribute to any use case.
So, my question is, given 3 windows: main, login, and authorize, where the first 2 are "static", in the sense that they are knowable in advanced but I need to dynamically decide on which one to present to the user and switch between them. The last one being "dynamic"(?) in the sense that I don't know the external URL it's going to load until runtime. How should I manage their state?