Reproduction link

Steps to reproduce
- Choose package
recharts@^2.4.0
- Set
<YAxis tickCount={2} />

- Set
<YAxis tickCount={2} domain={[0, "auto"]}/>

What is expected?

Should behave like document said .
What is actually happening?
Omitted prop domain brokes tickCount since v2.4.0.
| Environment |
Info |
| Recharts |
v2.4.2 |
| React |
17.0 |
| System |
Windows |
| Browser |
Chrome |
Reproduction link
Steps to reproduce
recharts@^2.4.0<YAxis tickCount={2} /><YAxis tickCount={2} domain={[0, "auto"]}/>What is expected?
Should behave like document said .
What is actually happening?
Omitted prop
domainbrokestickCountsince v2.4.0.