Open nesathanozturk opened 4 months ago
Hi,
I don't know how nobody reported this. I definitely think there is a bug on this particular prop. I don't have time right now to fix it. If you can debug and create a PR it's perfect 🙌
In the meantime, I recommend everyone, not to use this prop until a fix is made.
@xrutayisire Hi again. I added the following control into the setValue function and it fixed the re-render problem. Now, i can use the dropdrownsConfig property with setValue function. Maybe it might be useful for you to solve this problem.
setValue={(newValue: string) => {
if (newValue !== values.cronValue) {
dispatchValues({
type: 'set_values',
value: newValue,
})
handleCronChange(newValue)
}
}}
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:
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):