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

Commit

Permalink
chore: remove unnecessary renderedApp
Browse files Browse the repository at this point in the history
  • Loading branch information
eunjae-lee committed Jul 20, 2021
1 parent 3b264d2 commit 15c18de
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/util/createServerRootMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,16 +132,13 @@ function augmentInstantSearch(
*/
search.findResultsState = function(componentInstance) {
let app;
let renderedApp;

return Promise.resolve()
.then(() => {
app = cloneComponent(componentInstance, {
mixins: [
{
created() {
// eslint-disable-next-line consistent-this
renderedApp = this;
this.instantsearch.helper = helper;
this.instantsearch.mainHelper = helper;

Expand All @@ -159,7 +156,7 @@ function augmentInstantSearch(
.then(() => searchOnlyWithDerivedHelpers(helper))
.then(() => {
const results = {};
walkIndex(renderedApp.instantsearch.mainIndex, widget => {
walkIndex(app.instantsearch.mainIndex, widget => {
results[widget.getIndexId()] = widget.getResults();
});

Expand Down

0 comments on commit 15c18de

Please sign in to comment.