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

Commit

Permalink
feat(ssr): prevent initial network request (#1106)
Browse files Browse the repository at this point in the history
* feat(ssr): prevent initial network request

Same as #1090, but for Vue InstantSearch v3

* update bundle

* update lock
  • Loading branch information
Haroenv committed Jan 31, 2022
1 parent 4b0d295 commit 9285325
Show file tree
Hide file tree
Showing 6 changed files with 236 additions and 207 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@
"release": "shipjs prepare"
},
"dependencies": {
"algoliasearch-helper": "^3.1.0",
"instantsearch.js": "^4.25.0"
"instantsearch.js": "^4.34.0"
},
"peerDependencies": {
"algoliasearch": ">= 3.32.0 < 5",
Expand All @@ -67,6 +66,7 @@
"@wdio/spec-reporter": "^5.11.7",
"@wdio/static-server-service": "^5.11.0",
"algoliasearch": "4.0.1",
"algoliasearch-helper": "3.6.2",
"babel-eslint": "10.0.1",
"babel-jest": "23.6.0",
"babel-preset-es2015": "6.24.1",
Expand Down Expand Up @@ -114,7 +114,7 @@
"bundlesize": [
{
"path": "./dist/vue-instantsearch.js",
"maxSize": "54 kB"
"maxSize": "56.50 kB"
},
{
"path": "./dist/vue-instantsearch.common.js",
Expand Down
2 changes: 1 addition & 1 deletion src/mixins/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const createWidgetMixin = ({ connector } = {}) => ({
this.getParentIndex().addWidgets([this.widget]);

if (
this.instantSearchInstance.__initialSearchResults &&
this.instantSearchInstance._initialResults &&
!this.instantSearchInstance.started
) {
if (typeof this.instantSearchInstance.__forceRender !== 'function') {
Expand Down

0 comments on commit 9285325

Please sign in to comment.