Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Navigate doesn't clear search params

オープン
#528 コメント 0 件 リアクション 5 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
react, typescript
領域
frontend

調査の方向性

Start at the navigate('/foo') entry point described in the issue and trace how the destination URL is assembled when no replacement search string is provided. Done means navigation to another path clears the existing search parameters by default while an explicitly supplied search string still works; the payload names no files or tests to run.

索引モデルが issue の本文から書いたものです。

説明

Calling navigate('/foo') will leave search params in place unless there's a replacement search string after the /foo. I don't know why I'd want search to persist between different pages. And if I did, I could always do it manually with navigate(`/foo?${search}`).

This caused me issues where I have a couple routes that use similarly named search params, but whose values absolutely shouldn't carry over. So now I have to do navigate('/foo?dummy') in all of my navigation logic to prevent this behavior.

This really shouldn't be the default that people have to fight with.

主要言語
TypeScript
スター
7.9k
フォーク
193
平均マージ
6分
マージ済み PR(30日)
3

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

molefrog/wouter のほかの issue

molefrog/wouter の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。