Skip to content

Provide means to implement global singleton earlier #6235

@Enyium

Description

@Enyium

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 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    a:language-rustRust API and codegen (mO,mS)apiChanges or additions to APIsrfcRequest for comments: proposals for changes

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions