@adaptabletools/adaptable-react-aggrid 19.0.1 → 19.0.3

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,13 +1,13 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable-react-aggrid",
3
- "version": "19.0.1",
3
+ "version": "19.0.3",
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",
7
7
  "typings": "src/index.d.ts",
8
8
  "dependencies": {
9
9
  "tslib": "^2.3.0",
10
- "@adaptabletools/adaptable": "19.0.1"
10
+ "@adaptabletools/adaptable": "19.0.3"
11
11
  },
12
12
  "peerDependencies": {
13
13
  "@ag-grid-community/core": ">=32.1.0",
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { AgGridReact } from '@ag-grid-community/react';
3
3
  import AdaptableReactComponent from './AdaptableReact';
4
- import { ComponentUtil } from '@ag-grid-community/core';
4
+ import { ComponentUtil, } from '@ag-grid-community/core';
5
5
  import { diff } from '@adaptabletools/adaptable/src/Utilities/Extensions/ObjectExtensions';
6
6
  var AdaptableAgGridStateTransitions;
7
7
  (function (AdaptableAgGridStateTransitions) {
@@ -101,6 +101,7 @@ const AdaptableAgGridReact = (props) => {
101
101
  const propsRef = React.useRef(props);
102
102
  React.useEffect(() => {
103
103
  const prevProps = propsRef.current;
104
+ propsRef.current = props;
104
105
  if (isAgGridReady && agGridApi && prevProps !== props) {
105
106
  const changedProps = diff(prevProps, props);
106
107
  for (const changedProp of changedProps) {