Refactor datepicker - Too many re-renders #30
Labels
Func: Dashboard contracts
Issues related to the contract management in dashboard
Func: Offering Discovery
Issues related to catalogue browsing
Func: Offering Publication
Issues related to offering publication
Type: bug
Something isn't working
The components Datepicker and FilterDatePicker use the function Handlechange to setValue.
![image](https://private-user-images.githubusercontent.com/63013781/401602194-5a1b7aa5-bb67-4845-8aa1-0d6c6e1f7470.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MjY1MTcsIm5iZiI6MTczOTYyNjIxNywicGF0aCI6Ii82MzAxMzc4MS80MDE2MDIxOTQtNWExYjdhYTUtYmI2Ny00ODQ1LThhYTEtMGQ2YzZlMWY3NDcwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDEzMzAxN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNmYjk1MGU1OTRjZWYxZDRlNTA0ZmIzYTc4NmQ5ZDQwNjM0ZWNiZTA2NjEyNGM4ZDQ1MTUyMDc4ZTczMzZjZGQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.3f1VF_8eFvVVfK5TtiwoiwnxPT84XrF0zssWpCUTCXo)
To avoid the use of handlechange we tried to
setValue
directly toonChange
.But when passing
setValue
directly toonChange
there are too many re-renders and the app crashes.The text was updated successfully, but these errors were encountered: