feat: datum-ui v0.2 — monorepo scaffold, component library, tests, storybook, docs #8
Annotations
10 warnings
|
Lint:
packages/datum-ui/src/components/features/calendar-date-picker/calendar-date-picker.tsx#L192
Do not call the 'set' function 'setPendingDate' of 'useState' directly in 'useEffect'
|
|
Lint:
packages/datum-ui/src/components/features/calendar-date-picker/calendar-date-picker.tsx#L107
The 'today' object construction makes the dependencies of useMemo Hook (at line 126) change on every render. To fix this, wrap the initialization of 'today' in its own useMemo() Hook
|
|
Lint:
packages/datum-ui/src/components/features/calendar-date-picker/calendar-date-picker.tsx#L107
The 'today' object construction makes the dependencies of useMemo Hook (at line 117) change on every render. To fix this, wrap the initialization of 'today' in its own useMemo() Hook
|
|
Lint:
packages/datum-ui/src/components/features/avatar-stack/avatar-stack.tsx#L95
Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components
|
|
Lint:
packages/datum-ui/src/components/base/button/index.tsx#L1
Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components
|
|
Lint:
packages/datum-ui/src/components/base/button/button.tsx#L332
Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components
|
|
Lint:
packages/datum-ui/src/components/base/badge/badge.tsx#L229
Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components
|
|
Lint:
apps/storybook/stories/features/calendar-date-picker.stories.tsx#L76
To prevent re-computation, consider using lazy initial state for useState calls that involve function calls. Ex: 'useState(() => getValue())'
|
|
Lint:
apps/storybook/stories/features/calendar-date-picker.stories.tsx#L75
To prevent re-computation, consider using lazy initial state for useState calls that involve function calls. Ex: 'useState(() => getValue())'
|
|
Lint:
apps/storybook/stories/base/calendar.stories.tsx#L31
To prevent re-computation, consider using lazy initial state for useState calls that involve function calls. Ex: 'useState(() => getValue())'
|