When you call callbacks from a global singleton in a component's init callback, they aren't yet implemented, even if the first thing you do after AppWindow::new() is to implement the global singleton. This limits you.
Would it be possible to provide another constructor function with_...() or so on window components that maybe demands an FnOnce closure where you can call through to your function that implements the window's global singletons?
I'm using Rust.
When you call callbacks from a global singleton in a component's
init
callback, they aren't yet implemented, even if the first thing you do afterAppWindow::new()
is to implement the global singleton. This limits you.Would it be possible to provide another constructor function
with_...()
or so on window components that maybe demands anFnOnce
closure where you can call through to your function that implements the window's global singletons?