Closed nandorojo closed 2 years ago
I'm getting a weird error. If, inside of <DropdownMenu.Content>, I have an item that is conditionally rendered, I get an error that my item keys aren't stable. This breaks it:
<DropdownMenu.Content>
<Dropdown.Content> <Dropdown.Item key="one" /> {false} </Dropdown.Content>
I think it also breaks if there is an array rendered alongside a single item:
<Dropdown.Content> {items.map(item => <Dropdown.Item key={item} />)} <Dropdown.Item key="another-item" /> </Dropdown.Content>
Getting this issue on ios, will have to debug tomorrow.
ios
Fixed in 0.1.0-alpha.0.
0.1.0-alpha.0
I'm getting a weird error. If, inside of
<DropdownMenu.Content>
, I have an item that is conditionally rendered, I get an error that my item keys aren't stable. This breaks it:I think it also breaks if there is an array rendered alongside a single item:
Getting this issue on
ios
, will have to debug tomorrow.