Hi AllenFang, Thank you for all the support. I just have a question and I am not sure if I am doing it right or if it is even possible.
I am trying to change the value of my react hook state when OnChange is triggered inside formatter but for some reason the state always goes back to initial state ([]) when press any key and the current state is lost.
Here is some part o f my code.
import React, { useState, useEffect } from 'react'
import { connect } from 'react-redux'
// import 'react-bootstrap-table-next/dist/react-bootstrap-table2.min.css';
import BootstrapTable from 'react-bootstrap-table-next';
import paginationFactory from 'react-bootstrap-table2-paginator';
Hi AllenFang, Thank you for all the support. I just have a question and I am not sure if I am doing it right or if it is even possible.
I am trying to change the value of my react hook state when OnChange is triggered inside formatter but for some reason the state always goes back to initial state ([]) when press any key and the current state is lost.
Here is some part o f my code.
import React, { useState, useEffect } from 'react' import { connect } from 'react-redux' // import 'react-bootstrap-table-next/dist/react-bootstrap-table2.min.css'; import BootstrapTable from 'react-bootstrap-table-next'; import paginationFactory from 'react-bootstrap-table2-paginator';
import { Button, CardSubtitle, CardTitle, Col, TabPane, Label, Row, InputGroup, Input
} from "reactstrap"
import Switch from '@material-ui/core/Switch'; import CurrencyInput from 'react-currency-input-field';
import { setChequesCollections } from '../../../store/contracts/actions' import { update } from 'lodash'
export const ChequeInfo = (props) => {
}
const mapStateToProps = state => {
}
const mapDispatchToProps = { setChequesCollections }
export default connect(mapStateToProps, mapDispatchToProps)(ChequeInfo)