react-js-cron
react-js-cron copied to clipboard
When I add the dropdownsConfig property to the Cron component, it starts to re-render and goes into an infinite loop
Describe the bug When I add the dropdownsConfig property to the Cron component, it starts to re-render and goes into an infinite loop.
To Reproduce Steps to reproduce the behavior:
- Add dropdownsConfig property to Cron component.
- Choose month and select any value at "every day of the month" dropdown. Also add a console.log into your component.
- When selected a value, it starts to re-render.
- You can see the infinite console.log loop in your browser.
Expected behavior When I add the dropdownsConfig property to the Cron component, it shouldn't go into an infinite loop.
Screenshots
Versions (please complete the following information):
- react-js-cron version 5.0.1
- React version: 18.2.0
- OS: MacOS
- Browser: Firefox