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

Commit 9285325

Browse files
authored
feat(ssr): prevent initial network request (#1106)
* feat(ssr): prevent initial network request Same as #1090, but for Vue InstantSearch v3 * update bundle * update lock
1 parent 4b0d295 commit 9285325

File tree

6 files changed

+236
-207
lines changed

6 files changed

+236
-207
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@
4545
"release": "shipjs prepare"
4646
},
4747
"dependencies": {
48-
"algoliasearch-helper": "^3.1.0",
49-
"instantsearch.js": "^4.25.0"
48+
"instantsearch.js": "^4.34.0"
5049
},
5150
"peerDependencies": {
5251
"algoliasearch": ">= 3.32.0 < 5",
@@ -67,6 +66,7 @@
6766
"@wdio/spec-reporter": "^5.11.7",
6867
"@wdio/static-server-service": "^5.11.0",
6968
"algoliasearch": "4.0.1",
69+
"algoliasearch-helper": "3.6.2",
7070
"babel-eslint": "10.0.1",
7171
"babel-jest": "23.6.0",
7272
"babel-preset-es2015": "6.24.1",
@@ -114,7 +114,7 @@
114114
"bundlesize": [
115115
{
116116
"path": "./dist/vue-instantsearch.js",
117-
"maxSize": "54 kB"
117+
"maxSize": "56.50 kB"
118118
},
119119
{
120120
"path": "./dist/vue-instantsearch.common.js",

src/mixins/widget.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const createWidgetMixin = ({ connector } = {}) => ({
3030
this.getParentIndex().addWidgets([this.widget]);
3131

3232
if (
33-
this.instantSearchInstance.__initialSearchResults &&
33+
this.instantSearchInstance._initialResults &&
3434
!this.instantSearchInstance.started
3535
) {
3636
if (typeof this.instantSearchInstance.__forceRender !== 'function') {

0 commit comments

Comments
 (0)