-
Notifications
You must be signed in to change notification settings - Fork 33
feat: Make rollup group behaviour a setting in the global settings menu #2183
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
Changes from 6 commits
fd14237
3941b7c
60a585f
7a5d4e2
a25bd9a
fd20dd0
55c315a
4092e79
d5ebdd0
32faad6
e98abba
b8f3213
8c80230
1cbc60d
f0ca4ab
7d8fc95
68a4148
7d8f09e
bb7c663
024db4f
ca8f90b
a1bd2eb
2fa7306
fa517e3
48d061d
f10645a
06d3433
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -48,7 +48,7 @@ interface IrisGridModelUpdaterProps { | |
| const IrisGridModelUpdater = React.memo( | ||
| ({ | ||
| model, | ||
| modelColumns, | ||
| modelColumns: propModelColumns, | ||
| top, | ||
| bottom, | ||
| left, | ||
|
|
@@ -71,6 +71,10 @@ const IrisGridModelUpdater = React.memo( | |
| columnHeaderGroups, | ||
| partitionConfig, | ||
| }: IrisGridModelUpdaterProps) => { | ||
| if (model.formatter !== formatter) { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the "less" hacky way to fix this is to get rid of all the function useOnChange(callback: () => void, deps: DependencyList): void {
// Want to call the callback if the deps have changed from the previous time
const prevDeps = usePrevious(deps);
if (prevDeps === undefined || !deps.every((dep, i) => dep === prevDeps[i])) {
callback();
}
}Then instead of |
||
| model.formatter = formatter; | ||
| } | ||
| const modelColumns = model.columns; | ||
| const columns = useMemo( | ||
| () => | ||
| IrisGridUtils.getModelViewportColumns( | ||
|
|
@@ -108,12 +112,6 @@ const IrisGridModelUpdater = React.memo( | |
| }, | ||
| [model, sorts, reverseType] | ||
| ); | ||
| useEffect( | ||
| function updateFormatter() { | ||
| model.formatter = formatter; | ||
| }, | ||
| [model, formatter] | ||
| ); | ||
| useEffect( | ||
| function updateCustomColumns() { | ||
| if (model.isCustomColumnsAvailable) { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.