Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patch(react-table): expose DataGrid related contexts #28973

Merged

Conversation

FengQiMS
Copy link
Contributor

@FengQiMS FengQiMS commented Aug 24, 2023

Previous Behavior

useColumnIdContext, useIsInTableHeader are not exposed from react-table, expose this let users implement their own datagrid header cell from primitives.

New Behavior

useColumnIdContext, useIsInTableHeader are exposed so that user can customize own DataGridHeaderCell to support different behaviour.

@fabricteam
Copy link
Collaborator

fabricteam commented Aug 24, 2023

🕵 fluentuiv9 No visual regressions between this PR and main

@fabricteam
Copy link
Collaborator

fabricteam commented Aug 24, 2023

📊 Bundle size report

Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-components
react-components: Button, FluentProvider & webLightTheme
66.614 kB
18.512 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
203.786 kB
57.921 kB
react-components
react-components: FluentProvider & webLightTheme
37.787 kB
12.387 kB
react-portal-compat
PortalCompatProvider
6.48 kB
2.203 kB
react-table
DataGrid
152.77 kB
42.242 kB
react-table
Table (Primitives only)
39.638 kB
12.129 kB
react-table
Table as DataGrid
126.224 kB
33.612 kB
react-table
Table (Selection only)
71.594 kB
18.91 kB
react-table
Table (Sort only)
70.213 kB
18.511 kB
🤖 This report was generated against f0afca3be87768300ce58c4629fbf135f23699ff

@fabricteam
Copy link
Collaborator

fabricteam commented Aug 24, 2023

Perf Analysis (@fluentui/react-components)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 615 575 5000
Button mount 320 295 5000
Field mount 1094 1118 5000
FluentProvider mount 665 672 5000
FluentProviderWithTheme mount 73 73 10
FluentProviderWithTheme virtual-rerender 67 58 10
FluentProviderWithTheme virtual-rerender-with-unmount 78 69 10
InfoButton mount 15 8 5000
MakeStyles mount 842 847 50000
Persona mount 1719 1658 5000
SpinButton mount 1299 1332 5000

@FengQiMS FengQiMS marked this pull request as ready for review August 24, 2023 05:37
@FengQiMS FengQiMS requested review from a team as code owners August 24, 2023 05:37
@FengQiMS FengQiMS force-pushed the usr/fengqi/exposeDataGridrelatedcontext branch from 34d16be to ac1bfdf Compare August 24, 2023 06:59
@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit d216b7b:

Sandbox Source
@fluentui/react 8 starter Configuration
@fluentui/react-components 9 starter Configuration

@size-auditor
Copy link

size-auditor bot commented Aug 24, 2023

Asset size changes

Size Auditor did not detect a change in bundle size for any component!

Baseline commit: f0afca3be87768300ce58c4629fbf135f23699ff (build)

@ling1726
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 4 pipeline(s).

@ling1726 ling1726 merged commit 3f6c5a7 into microsoft:master Aug 24, 2023
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants