create-instantsearch-app 7.2.0 → 7.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-instantsearch-app",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "⚡️ Build InstantSearch apps at the speed of thought",
|
|
6
6
|
"keywords": [
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"validate-npm-package-name": "3.0.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@instantsearch/testutils": "1.
|
|
52
|
+
"@instantsearch/testutils": "1.17.0",
|
|
53
53
|
"jest-image-snapshot": "2.12.0",
|
|
54
54
|
"walk-sync": "2.0.2"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "8fb537f2301a5e133e9e5df20c7c208cae16b3aa"
|
|
57
57
|
}
|
|
@@ -31,6 +31,8 @@ const searchClient = algoliasearch(
|
|
|
31
31
|
'{{apiKey}}'
|
|
32
32
|
);
|
|
33
33
|
|
|
34
|
+
const future = { preserveSharedStateOnUnmount: true };
|
|
35
|
+
|
|
34
36
|
export function App() {
|
|
35
37
|
return (
|
|
36
38
|
<div>
|
|
@@ -47,7 +49,7 @@ export function App() {
|
|
|
47
49
|
</header>
|
|
48
50
|
|
|
49
51
|
<div className="container">
|
|
50
|
-
<InstantSearch searchClient={searchClient} indexName="{{indexName}}" {{#if flags.insights}}insights{{/if}}>
|
|
52
|
+
<InstantSearch searchClient={searchClient} indexName="{{indexName}}" future={future} {{#if flags.insights}}insights{{/if}}>
|
|
51
53
|
<Configure hitsPerPage={8} />
|
|
52
54
|
<div className="search-panel">
|
|
53
55
|
<div className="search-panel__filters">
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
<ais-instant-search
|
|
17
17
|
:search-client="searchClient"
|
|
18
18
|
index-name="{{indexName}}"
|
|
19
|
+
:future="future"
|
|
19
20
|
{{#if flags.insights}}insights{{/if}}
|
|
20
21
|
>
|
|
21
22
|
<ais-configure :hits-per-page.camel="8" />
|
|
@@ -85,6 +86,7 @@ export default {
|
|
|
85
86
|
data() {
|
|
86
87
|
return {
|
|
87
88
|
searchClient: algoliasearch('{{appId}}', '{{apiKey}}'),
|
|
89
|
+
future: { preserveSharedStateOnUnmount: true },
|
|
88
90
|
};
|
|
89
91
|
},
|
|
90
92
|
};
|