AG-3600 React - memoized functions don't render
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import React, {Component} from "react";
|
||||
import {connect} from "react-redux";
|
||||
import {AgGridReact} from "@ag-grid-community/react";
|
||||
import {AllModules} from "@ag-grid-enterprise/all-modules";
|
||||
|
||||
import PriceRenderer from "./PriceRenderer";
|
||||
|
||||
@@ -43,6 +44,7 @@ class GridComponent extends Component {
|
||||
// properties
|
||||
columnDefs={this.state.columnDefs}
|
||||
rowData={this.props.rowData}
|
||||
modules={AllModules}
|
||||
|
||||
// events
|
||||
onGridReady={this.onGridReady}>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import React, {useContext} from "react";
|
||||
import {Context} from "./store";
|
||||
import {AgGridReact} from "@ag-grid-community/react";
|
||||
import {AllModules} from "@ag-grid-enterprise/all-modules";
|
||||
|
||||
/*
|
||||
* This component serves to display the row data (provided by redux)
|
||||
@@ -21,6 +22,7 @@ export default function GridComponent() {
|
||||
// properties
|
||||
columnDefs={columnDefs}
|
||||
rowData={rowData}
|
||||
modules={AllModules}
|
||||
|
||||
defaultColDef={{filter: true}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user