Skip to content

Supported Method for Detecting ProxiesΒ #15345

@SBrazzCode

Description

@SBrazzCode

Describe the problem

A common concern with svelte 5's introduction of rune proxies is the inability to detect proxies i.e issue-13562. A common issue when migrating code is sudden errors erupting from libraries/apis that don't accept proxies. Adding to that issue, there is no supported way to method to detect if an object is a reactive proxy, so user's have to use try/catch or other homegrown methods to detect if an object is a proxy.

Describe the proposed solution

Can we have a supported method for detecting proxies

Ideally, the proxy check is something integrated in Svelte's current proxy logic (linked above). Alternatively, a more generic javascript proxy detection method could work.

Importance

would make my life easier

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions