Skip to content

Compatibility build: How do we replace the component proxy's functionality? #31

@LinusBorg

Description

@LinusBorg

So I was wondering about this ... and it's more a question of curiosity than me spotting a problem but ...

We will provide a compatibility version of the observer package that will implement the 2.0 Reactivity system (getters&setters) that people can use for browsers that don't support Proxy (read: IE).

However, also heavily rely on Proxy in the runtime-core (componentProxy.ts)

With this implementation, we don't have to actually add properties to the component instance for each prop and $data property, computed property and so on. We can just catch get and set access in the component's proxy.

But for a compatibility build, we would have to replace this behaviour with code that dpoes add getters & setters to the component instance, right?

In the current implementtion I don't see a clean / easy way to exchange this like we plan to have it for the observer package, do we (@evan) have a plan for how to approach it?

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