@hrnet-aj/data-table v2.0.0
Data-table
React component for displaying tables in the HRNet application's UI.
Requirements
š Getting started
pnpm dev-standalone # Serves the package's demo application
pnpm install
pnpm build
Notes
This package is experimenting the Vite's library mode.
For now, it is meant to be developed with its standalone application, served by Vite.
This leads to:
ā way simpler configuration
ā faster reload on source file changes
ā Storybook in monorepo won't refresh alone
Reason
You will be able to get HMR while serving the app in dev mode, but this won't update the dist/
directory.
This means that the Storybook in the monorepo won't update when modifying this package source files.
Temporary workaround
Develop the package with the standalone dev command.
If you want to let the Storybook update at some point, you can still run the build command.
As soon as the build ends, Storybook will reload the components.
This might or might not change in the future, depending on whether we are happy with this behavior.