feat: datum-ui v0.2 — monorepo scaffold, component library, tests, storybook, docs #3
Annotations
10 warnings
|
Lint:
packages/datum-ui/src/components/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/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/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/button/button.tsx#L308
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/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:
packages/datum-ui/src/components/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:
apps/storybook/stories/stepper.stories.tsx#L12
In React 19, you can render '<Context>' as a provider instead of '<Context.Provider>'
|
|
Lint:
apps/storybook/stories/calendar.stories.tsx#L31
To prevent re-computation, consider using lazy initial state for useState calls that involve function calls. Ex: 'useState(() => getValue())'
|
|
Lint:
apps/storybook/stories/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/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())'
|