algolia / algolia/doc-code-samples
updating querystring with query value
Open
- Dominant language
- TypeScript
- Stars
- 99
- Forks
- 122
- PR merge metrics
- No merged PRs in 30d
Description
hi, thanks so much for the example.
i am trying to get this working with the query parameter in the url. is this possible?
i can find in the documentation of the autocomplete lib some information about state
```
initialState: {
// This uses the `search` query parameter as the initial query
query: new URL(window.location).searchParams.get('query'),
},
onStateChange({ state }) {
console.log(state);
},
```
This doesn't seem to work in the selectize version. Any help would be great!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.