Skip to content

bug(api): withGlobalTauri injection order is wrong and can't access window #2289

@lemarier

Description

@lemarier

Describe the bug

When we enable withGlobalTauri we got;

TypeError: undefined is not an object (evaluating 'window.__TAURI__.__currentWindow.label')

To Reproduce

Steps to reproduce the behavior:
cargo run --bin bench_helloworld

Expected behavior

Should work without errors

Screenshots

N/A

Additional context

Introduced by #2285

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions