Closed mahmoudAcm closed 7 months ago
I think this issue is addressed in the v10. Mind giving a try ?
npm i react-toastify@beta
I tried it, and it works perfectly fine! This issue has been resolved. Thank you @fkhadra for the fix.
Awesome thanks for testing I'm finishing the doc and I'll publish the v10 this week
Description: When setting the
limit
prop for toasts initially, the behavior of the limit is not working as expected. After displaying the initial set of toasts, the limit appears to decrease by one each time a toast disappears, which results in an unexpected and incorrect display of toasts.Steps to Reproduce:
limit
prop, e.g.,limit={4}
.Expected Behavior:
limit
prop is set initially, the toast component should display the specified number of toasts as expected, e.g., 4 toasts.limit
prop should not decrease automatically as toasts disappear, ensuring the consistent display of toasts according to the initial limit.Actual Behavior:
limit
prop appears to decrease by one each time, leading to an unexpected reduction in the number of displayed toasts.This bug affects the intended behavior of the
limit
prop for the toast component and should be addressed to ensure a consistent and accurate display of toasts based on the specified limit.