Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update in Map Array #291

Open
junior-jornada opened this issue Sep 30, 2022 · 1 comment
Open

Update in Map Array #291

junior-jornada opened this issue Sep 30, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@junior-jornada
Copy link

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. 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}
@prabhuignoto prabhuignoto self-assigned this Oct 1, 2022
@prabhuignoto prabhuignoto added the bug Something isn't working label Oct 1, 2022
@collab-with-tushar-raj
Copy link

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".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants