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

storeToRefsを使う #23

Open
mehm8128 opened this issue Oct 10, 2022 · 3 comments
Open

storeToRefsを使う #23

mehm8128 opened this issue Oct 10, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@mehm8128
Copy link
Contributor

毎回xxStore.なんたらってしてるのが冗長なのでstoreToRefsを使って分割代入するのがよさそう
メソッドはstoreToRefsを使わずにstoreを分割代入

@mehm8128
Copy link
Contributor Author

traQだとstoreをexportするタイミングでrefに変換してた気がするからそっちの方が楽でよさそう

@mehm8128
Copy link
Contributor Author

↑なにも理解していないけどここらへん
https://github.com/traPtitech/traQ_S-UI/blob/master/src/store/utils/convertToRefsStore.ts

@mehm8128 mehm8128 added the enhancement New feature or request label Dec 26, 2022
@mehm8128
Copy link
Contributor Author

vuejs/pinia#2082
これでできるようになるかも

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant