algolia / algolia/doc-code-samples
updating querystring with query value
- 主要语言
- TypeScript
- 星标
- 99
- 派生
- 122
- PR 合并指标
- 30 天内没有已合并 PR
描述
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!
贡献指南
这个仓库没有索引到贡献指南
调研方向
没有指定文件或测试。首先定位 Selectize 示例,并结合所示的 initialState 和 onStateChange 代码片段阅读 autocomplete 状态文档。当示例明确处理所要求的查询参数行为,或记录该限制时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- typescript
- 领域
- documentation
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 20/100