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