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

[Bug] when set mobileBreakpoint to 0 #21

Open
MahmoudTarekAli opened this issue Oct 23, 2022 · 2 comments
Open

[Bug] when set mobileBreakpoint to 0 #21

MahmoudTarekAli opened this issue Oct 23, 2022 · 2 comments

Comments

@MahmoudTarekAli
Copy link

Warning: Encountered two children with the same key, `1`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version. in div (created by styled.div) in styled.div (created by SingleElimination) in div (created by styled.div) in styled.div (created by SingleElimination) in div (created by ReactSwipableView) in div (created by ReactSwipableView) in div (created by ReactSwipableView) in ReactSwipableView (created by SingleElimination) in div (created by styled.div) in styled.div (created by SingleElimination) in SingleElimination (at wining-bracket.tsx:29) in WiningBracket (at double-elimination/index.tsx:112) in div (at double-elimination/index.tsx:111) in DoubleElimination (at App.tsx:17) in div (at App.tsx:8) in App (at src/index.tsx:7)

@MahmoudTarekAli
Copy link
Author

This Issue was only on your example I tried the library on a different project and it was just working fine. Thank you for making this lib

@MahmoudTarekAli
Copy link
Author

It was because array.fill create two seed with the same id

    title: 'Round 2',
    seeds: [...new Array(2)].fill({
      id: 12,
      teams: [
        {id: 33, name: 'The Leons', score: 2},
        {id: 44, name: 'Kitties', score: 6},
      ],
    }),
  },```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant