Yutaro Hayashi

Results 16 issues of Yutaro Hayashi

ref: https://floating-ui.com/docs/migration `Popper v2`が`Floating UI`にリブランディングされたので、移行する必要がある。 > Rebranding: The library was rebranded as it offers more packages and functionality, like the new [React DOM Interactions](https://floating-ui.com/docs/react-dom-interactions) package, while Popper only ever offered...

ちょっと上下がずれている ![image](https://user-images.githubusercontent.com/40020812/88626053-ee753100-d0e4-11ea-966f-41e7f738fc0b.png)

ガーデニング

- 現状対応していない - https://github.com/mui/material-ui/blob/master/packages/mui-material/src/ButtonBase/ButtonBase.d.ts#L101-L104 MUIだと型だけ見たがうまいことやっていそう

ref: https://github.com/voyagegroup/ingred-ui/issues/152 ref: https://github.com/voyagegroup/ingred-ui/pull/252#issuecomment-826490718 英語以外の環境で利用すると、各コンポーネントの引数に毎回代入する必要があるので、対応する。

```tsx ops.hoge} getOptionValue={(ops) => ops.huga} options={someObjects} /> ``` 型が厳格なこともあり、``のためにarray.map()を利用するケースが増えてきた。 上記のような書き方ができれば、無駄な処理を減らすことができる。

enhancement
ガーデニング

```tsx const [selectedRowIds, setSelectedRowIds] = React.useState( new Set(), ); const onHandleSelectRowsChange = (rowIds: number[]) => { setSelectedRowIds(new Set(rowIds)); }; return ( ) ``` 1. ``内部の`useEffect`で`onSelectRowsChange()`が発火 2. `selectedRowIds`が変更される 3. 再レンダリングの影響で`onHandleSelectRowsChange`の参照が変わる 4....

bug

徐々に`transition`を含んだコンポーネントにかわってくるので、この辺で考えておきたい。

question
ガーデニング

```tsx export type DataTableBaseData = { id: number; selectDisabled?: boolean; }; ``` ``で扱う`data`propsの中にある`id`をもっと柔軟にする。 - `string`を入れることを可能にする - 一意であるプロパティであれば良いので、`id`ではないプロパティも指定できるようにする

enhancement

ref: https://github.com/voyagegroup/ingred-ui/issues/135 ref: https://github.com/voyagegroup/ingred-ui/issues/9 ### 背景 具体的な日は不明瞭だが、2020年後半に`Moment.js`がメンテナンスモードとなった。 https://momentjs.com/docs/#/-project-status/ > We now generally consider Moment to be a legacy project in maintenance mode. It is not dead, but it is indeed...