use-algolia
Advanced tools
+1
-1
@@ -12,3 +12,3 @@ { | ||
| ], | ||
| "version": "1.4.0", | ||
| "version": "1.4.1", | ||
| "license": "MIT", | ||
@@ -15,0 +15,0 @@ "author": "Sidney Alcantara", |
+7
-5
@@ -22,3 +22,3 @@ # useAlgolia [](https://www.npmjs.com/use-algolia) [](https://bundlephobia.com/result?p=use-algolia) | ||
| If you don’t have one of the three on the first hook call, pass in an empty | ||
| string and use `setAlgoliaConfig`. | ||
| string first. | ||
| [See the example below.](#changing-query-index-or-other-algolia-config) | ||
@@ -108,5 +108,7 @@ | ||
| You can change the `appId`, `searchKey`, or `indexName` using | ||
| `setAlgoliaConfig`, the fourth function returned by the hook: | ||
| When the `appId`, `searchKey`, or `indexName` passed to the hook call updates, | ||
| the index is reinitialised with the new config. | ||
| You can also use the `setAlgoliaConfig` function returned by the hook: | ||
| ```ts | ||
@@ -122,4 +124,4 @@ const [, , , setAlgoliaConfig] = useAlgolia('', '', ''); | ||
| This will automatically do the first query on the new index if all three items | ||
| are provided. | ||
| Doing either will automatically do the first query on the new index if all three | ||
| items are provided. | ||
@@ -126,0 +128,0 @@ ### Searching for facet values |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
62886
0.1%182
1.11%