-
Notifications
You must be signed in to change notification settings - Fork 0
ユーザー一覧の実装 #137
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
ユーザー一覧の実装 #137
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.
こういうリファクタリング大事
frontend/app/types/paginatiion.d.ts
Outdated
| handleLimitChange: (newLimit: number) => void; | ||
| page?: number; | ||
| limit?: number; | ||
| totalNum: number; |
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.
total だけでもいいかなと思った
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.
bb
| const handleLimitChange = (newLimit: number) => | ||
| navigate(`/home/users?limit=${newLimit}`); |
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.
個人的にこの書き方あんまり好きじゃない
関数の中身が1行だったとしてもブロックで書きたい
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.
bb
やったこと
確認した方法
pnpm run devで動かしたスクリーンショット
自動生成したコード