react-js-cron icon indicating copy to clipboard operation
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

Open nesathanozturk opened this issue 9 months ago • 2 comments

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:

  1. Add dropdownsConfig property to Cron component.
  2. Choose month and select any value at "every day of the month" dropdown. Also add a console.log into your component.
  3. When selected a value, it starts to re-render.
  4. 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

ss2 ss1

Versions (please complete the following information):

  • react-js-cron version 5.0.1
  • React version: 18.2.0
  • OS: MacOS
  • Browser: Firefox

nesathanozturk avatar May 07 '24 19:05 nesathanozturk