Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vuexのstoreの呼び出しをリテラル引数からDot記法へ #2099

Merged
merged 11 commits into from
May 28, 2024

Conversation

Segu-g
Copy link
Member

@Segu-g Segu-g commented May 25, 2024

内容

store.ts内における関数の呼び出しにおいて、dispatch("ACTION1", payloads) のような引数におけるリテラル指定から actions.ACTION(payload) のようにdot記法によるアクセスに変更します。
とりあえずどのくらいの規模でPRを分割すべきかわからなかったので、元のコードは残し、dictionary.tsだけ新しい記法に変えています。

type.tsは残したままなので lsp上で goto definition をしても type.ts に移動するだけですが、 goto implementation で実装に飛べます。

関連 Issue

ref #2088

スクリーンショット・動画など

その他

@Segu-g Segu-g requested a review from a team as a code owner May 25, 2024 20:04
@Segu-g Segu-g requested review from Hiroshiba and removed request for a team May 25, 2024 20:04
Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

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

ほぼLGTMです!!

良いですね!!!
僕的にはコードの観点からダメそうなとこがわからないので、もうマージしても良いのではと感じました!

TypeScriptにちょっと明るそうな方にメンション飛ばさせていただきます 🙇
Proxyや大量の関数のreduceなどがありえますが、なにか問題点とか気づいたらいつでもコメントいただけると!!!
@sevenc-nanashi @yamachu @MT224244

自分はコードを一通り眺めて、違和感あるとこやドキュメントほしいとこにコメント書きました!

src/store/dictionary.ts Outdated Show resolved Hide resolved
src/store/vuex.ts Outdated Show resolved Hide resolved
src/store/vuex.ts Show resolved Hide resolved
src/store/vuex.ts Show resolved Hide resolved
src/store/vuex.ts Show resolved Hide resolved
src/store/vuex.ts Outdated Show resolved Hide resolved
src/store/dictionary.ts Outdated Show resolved Hide resolved
Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

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

LGTM!!!

コードジャンプ素晴らしいですね!!

しばらく他の方のコメントがないか待ってみて、みんな忙しそうだったらとりあえずマージして進めてみる形がいいのかなと思ってます!
戻すのも難しくないはずですし・・・!

src/store/dictionary.ts Outdated Show resolved Hide resolved
Copy link
Member

@yamachu yamachu left a comment

Choose a reason for hiding this comment

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

LGTM!

@Hiroshiba
Copy link
Member

@yamachu レビューありがとうございます!!

マージします!!!
大変だと思うのですが他のstoreも是非よろしくお願いしたいです・・・!!!

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.

3 participants