react-chrono
react-chrono copied to clipboard
Update in Map Array
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
- Update list of objects
Expected behavior When updating a list of objects in order to update the timeline it does not work.
Desktop (please complete the following information):
- Browser [chrome, safari]
Example Code
<Chrono
mode="VERTICAL"
allowDynamicUpdate={true}
>
{kitBudget.map((item) => (
<VStack>
<Container minW="3xl" bg="green.400" color="#262626">
{item.product.id}
</Container>
</VStack>
))}
</Chrono>
Gambiarra Solution (workaround):
- Add key={Math.random() * 1000}
Neither for me. It's very strange that the library does not support the basic Array.map function which React Developers use very often. No way, it should be called "react-chrono".