You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a followup to #4652. For integration of Vue with existing Tracker-based Meteor apps, one approach how to assure fur compatibility is to implement Tracker on top of observer implementation. This has been proven to work great with 2.x version and it just needed a bit more access to Vue observer internals than what was already available.
I would suggest that in 3.x there is a simple way to register an alternative Vue observer implementation. In this way 3rd party libraries could extend new Vue observer implementation with additional things and then register it back for Vue to use it.
What does the proposed API look like?
It could be something as simple as Vue.useReactivity(module). It would be on module's author to assure that the alternative implementation is compatible and works well with Vue.
The text was updated successfully, but these errors were encountered:
I would suggest that in 3.x there is a simple way to register an alternative Vue observer implementation.
In Vue 3.0, we will indeed implement the new, proxy-based Observer implementation as an independent package, and also implement an alternative version which uses the getters/setters based Reactivity system from 2.0 (for IE compatibility)
So something like this will likely be possible, though the details are still under consideration.
In fact I am more interesting in hooking into underlying observe logic. Not so much how it is exposed (through proxy or other means). But probably it can be the same thing. Generally it is more or less something like "every time X gets invalidated, also call this extra code, and when Y gets rerun, call this as well".
What problem does this feature solve?
This is a followup to #4652. For integration of Vue with existing Tracker-based Meteor apps, one approach how to assure fur compatibility is to implement Tracker on top of observer implementation. This has been proven to work great with 2.x version and it just needed a bit more access to Vue observer internals than what was already available.
I would suggest that in 3.x there is a simple way to register an alternative Vue observer implementation. In this way 3rd party libraries could extend new Vue observer implementation with additional things and then register it back for Vue to use it.
What does the proposed API look like?
It could be something as simple as
Vue.useReactivity(module)
. It would be onmodule
's author to assure that the alternative implementation is compatible and works well with Vue.The text was updated successfully, but these errors were encountered: