-
Notifications
You must be signed in to change notification settings - Fork 304
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
Refactor: GET_ORDERED_ALL_CHARACTERS_INFOを統合 #1819
base: main
Are you sure you want to change the base?
Refactor: GET_ORDERED_ALL_CHARACTERS_INFOを統合 #1819
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ほぼLGTMです!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
よくよく見てみるとORDEREDは必要な気がしてきました。。。
いやまあMapはたしか順序が維持されるので、今のコードなら実は順序大丈夫なのですが、変えちゃだめなことに気づけないなと・・・
ORDEREDの方だけにして、Mapの方はORDEREDから作るとか・・・・?
// サンプルの順番、新しいキャラクターは上に | ||
sampleCharacterOrder.value = [ | ||
...newCharacters.value, | ||
...props.characterInfos | ||
...characterInfosArray.value | ||
.filter( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
こーーーーーーれ、characterInfosArray
はorderedな必要がある気がしてきました・・・・・・・。
(順番が大事っぽい。)
<default-style-list-dialog | ||
v-if="orderedTalkCharacterInfos.length > 0" | ||
v-if="allTalkCharacterInfos.length > 0" | ||
v-model="isDefaultStyleSelectDialogOpenComputed" | ||
:character-infos="orderedTalkCharacterInfos" | ||
:character-infos="allTalkCharacterInfos" | ||
/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
こっちも実はorderedじゃないといけない説が・・・・・・・?
内容
速度的にもあまり変わらない(ソース)ので統合します。
関連 Issue
(なし)
スクリーンショット・動画など
(なし)
その他
(なし)