-
Notifications
You must be signed in to change notification settings - Fork 157
feat(vue 3): support inject without this
#951
Conversation
@@ -72,6 +67,11 @@ Read more on using connectors: https://alg.li/vue-custom` | |||
}, | |||
}, | |||
methods: { | |||
getParentIndex() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure if it's the best approach, though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this makes sense, but would need to see it together with the InstantSearch change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Haroenv can you explain what you mean here? ↑
@@ -11,12 +11,7 @@ export const createWidgetMixin = ({ connector } = {}) => ({ | |||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this needs to be fixed too
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 20373cf:
|
f40694c
to
79de5a9
Compare
20373cf
to
878347c
Compare
This reverts commit cf7f20a, because the issue has been fixed since Vue@3.1.2 by vuejs/core#3925
…instantsearch#951)" This reverts commit 8348d3d, because the issue has been fixed since Vue@3.1.2 by vuejs/core#3925
Vue 3 doesn't bind
this
when callingdefault()
of a injected variable.https://github.com/vuejs/vue-next/blob/540e26f49c09edf09b6a60ac2a978fdec52686bf/packages/runtime-core/src/apiInject.ts#L62-L64