You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

use-algolia

Package Overview
Dependencies
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-algolia - npm Package Compare versions

Comparing version
1.4.0
to
1.4.1
+1
-1
package.json

@@ -12,3 +12,3 @@ {

],
"version": "1.4.0",
"version": "1.4.1",
"license": "MIT",

@@ -15,0 +15,0 @@ "author": "Sidney Alcantara",

@@ -22,3 +22,3 @@ # useAlgolia [![npm latest release](https://badgen.net/npm/v/use-algolia)](https://www.npmjs.com/use-algolia) [![Minified size](https://badgen.net/bundlephobia/min/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