Skip to content

Conversation

@xnv
Copy link
Member

@xnv xnv commented Aug 6, 2024

掲題どおり。

#1320 のビルドエラーを解消するために query-string の依存を除き、URLSearchParams に移行します。変更後、Mac Chrome/Firefox/Safari 上で、akashic serve の ?mode=replay&replayTargetTime=10000&paused=1 オプションが機能することを確認しています。

urlWithQuery = `${url}?${queryString.stringify(params)}`;
}
const response = await fetchWithTimeout(urlWithQuery);
export const get = async<T>(url: string): Promise<T> => {
Copy link
Member Author

@xnv xnv Aug 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

URLSearchParams で対応できるのですが、よく見ると利用箇所がなく、動作確認のしようもないので削除してしまいます。必要になった時に実装する想定です。del と ApiRequestMock の方も同様に削除。

@xnv xnv requested review from ShinobuTakahashi and yu-ogi August 6, 2024 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants