Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Export useColumnIndexContext and useRowIndexContext",
"packageName": "@fluentui-contrib/react-data-grid-react-window-grid",
"email": "[email protected]",
"dependentChangeType": "patch"
}
8 changes: 8 additions & 0 deletions packages/react-data-grid-react-window-grid/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ export {
DataGridSelectionCell,
} from '@fluentui/react-components';

export {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure this is a recommended approach, for most cases exporting raw Context should not be allowed as that introduces internal API leaks

based on codeowners maybe @ling1726 can provide additional POV ?

ColumnIndexContextProvider,
useColumnIndexContext,
} from './contexts/columnIndexContext';
export {
RowIndexContextProvider,
useRowIndexContext,
} from './contexts/rowIndexContext';
export type {
DataGridCellProps,
DataGridHeaderCellProps,
Expand Down