@adaptabletools/adaptable-react-aggrid 23.1.0-canary.2 → 24.0.0-canary.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable-react-aggrid",
3
- "version": "23.1.0-canary.2",
3
+ "version": "24.0.0-canary.0",
4
4
  "description": "React version of AdapTable - the powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements",
5
5
  "keywords": [],
6
6
  "license": "contact sales@adaptabletools.com for details",
@@ -8,7 +8,7 @@
8
8
  "dependencies": {
9
9
  "react-redux": "9.2.0",
10
10
  "tslib": "^2.8.1",
11
- "@adaptabletools/adaptable": "23.1.0-canary.2"
11
+ "@adaptabletools/adaptable": "24.0.0-canary.0"
12
12
  },
13
13
  "peerDependencies": {
14
14
  "ag-grid-enterprise": ">=36.2.0",
@@ -132,9 +132,12 @@ const AdaptableAgGridReact = (props) => {
132
132
  const { modules, gridOptions, setAgGridApi, transition, setAgGridProps, agGridApi, gridApiPromiseReject, id, } = useAdaptableAgGridContext();
133
133
  const propsRef = React.useRef(props);
134
134
  React.useEffect(() => {
135
+ if (!isAgGridReady || !agGridApi) {
136
+ return;
137
+ }
135
138
  const prevProps = propsRef.current;
136
139
  propsRef.current = props;
137
- if (isAgGridReady && agGridApi && prevProps !== props) {
140
+ if (prevProps !== props) {
138
141
  const changedProps = diff(prevProps, props);
139
142
  for (const changedProp of changedProps) {
140
143
  if (agGridPropertySet.has(changedProp)) {
@@ -142,7 +145,7 @@ const AdaptableAgGridReact = (props) => {
142
145
  }
143
146
  }
144
147
  }
145
- }, [props, agGridApi]);
148
+ }, [props, agGridApi, isAgGridReady]);
146
149
  const LIST_OF_PROPS_NOT_ON_GRID_OPTIONS = [
147
150
  'rowData',
148
151
  'containerStyle',