File tree Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -7,4 +7,4 @@ generates:
77 - ' fragment-matcher'
88 ./graphql.schema.json :
99 plugins :
10- - ' introspection'
10+ - ' introspection'
Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ import {
4343 createServerRootMixin ,
4444} from ' vue-instantsearch'
4545
46+ import { renderToString } from ' @vue/server-renderer'
47+
4648import algoliasearch from ' algoliasearch/lite'
4749
4850const searchClient = algoliasearch (
@@ -87,9 +89,11 @@ export default {
8789 },
8890 },
8991 serverPrefetch () {
90- return this .instantsearch .findResultsState (this ).then ((algoliaState ) => {
91- this .$ssrContext .nuxt .algoliaState = algoliaState
92- })
92+ return this .instantsearch
93+ .findResultsState (this , renderToString)
94+ .then ((algoliaState ) => {
95+ this .$ssrContext .nuxt .algoliaState = algoliaState
96+ })
9397 },
9498}
9599 </script >
Original file line number Diff line number Diff line change @@ -11735,9 +11735,9 @@ parse-path@^4.0.0:
1173511735 query-string "^6.13.8"
1173611736
1173711737parse-url@^6.0.0:
11738- version "6.0.3 "
11739- resolved "https://registry.yarnpkg.com/parse-url/-/parse-url-6.0.3 .tgz#d8eab63c8c7e6dee850434763c4e6c5e7e57a45b "
11740- integrity sha512-gxeYC5LVOWg1po3HjHF1JHyyI+kDp/ziEGWUv+smkonT//KRI8TM0zi+yj4e2EZWZ+WGiTPIG1WJSkWZE7isWg ==
11738+ version "6.0.5 "
11739+ resolved "https://registry.yarnpkg.com/parse-url/-/parse-url-6.0.5 .tgz#4acab8982cef1846a0f8675fa686cef24b2f6f9b "
11740+ integrity sha512-e35AeLTSIlkw/5GFq70IN7po8fmDUjpDPY1rIK+VubRfsUvBonjQ+PBZG+vWMACnQSmNlvl524IucoDmcioMxA ==
1174111741 dependencies:
1174211742 is-ssh "^1.3.0"
1174311743 normalize-url "^6.1.0"
You can’t perform that action at this time.
0 commit comments