Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
fix: Revert "feat(vue 3): support inject without this (#951)"
Browse files Browse the repository at this point in the history
This reverts commit cf7f20a,
because the issue has been fixed since [email protected] by
vuejs/core#3925
  • Loading branch information
eunjae-lee committed Jun 24, 2021
1 parent 9503d54 commit 5d87a85
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/mixins/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ export const createWidgetMixin = ({ connector } = {}) => ({
);
},
},
getProvidedParentIndex: '$_ais_getParentIndex',
getParentIndex: {
from: '$_ais_getParentIndex',
default() {
return () => this.instantSearchInstance.mainIndex;
},
},
},
data() {
return {
Expand Down Expand Up @@ -68,11 +73,6 @@ Read more on using connectors: https://alg.li/vue-custom`
},
},
methods: {
getParentIndex() {
return this.getProvidedParentIndex
? this.getProvidedParentIndex()
: this.instantSearchInstance.mainIndex;
},
updateState(state = {}, isFirstRender) {
if (!isFirstRender) {
// Avoid updating the state on first render
Expand Down

0 comments on commit 5d87a85

Please sign in to comment.