question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

key field in cell should not be cell value

See original GitHub issue

i am struggling with the autogenerated key field for columns which seams to be a stringified version of the cell value. This causes conflicts when two different columns for an object display the same value (e.g. you wanna display 2 boolean columns).

Warning: Encountered two children with the same key, `false`. 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.

I have submitted a pull request for review: #173

Alternatively, is there a way to manually set the key value for columns?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
AllenFangcommented, Jan 28, 2018

@dandonahoe next patch will fix it. eta this week !!

1reaction
fuchsbergercommented, Jan 22, 2018

your work is pure awesomeness so of course Ill use it. as far as i can see in your code the key has no specific purpose on the cell rather than identifying it among its siblings. therefore i do not see any advantage in allowing a custom key to be set if it can be uniquly generated with the information given.

index-content sounds fine as long as its not content on its own.

key  = {`${index}-${content}`}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Relative & Absolute Cell References in Excel
Discover the difference between relative and absolute cell references in Microsoft Excel, and learn when to use relative and absolute cell references in ......
Read more >
Apply data validation to cells
Select Data >Data Validation. ... On the Settings tab, under Allow, select an option: ... Select OK. Now, if the user tries to...
Read more >
Excel Data Validation - Limit What a User Can Enter into ...
Data Validation is a tool in Excel that you can use to limit what a user can enter into a cell. It is...
Read more >
Excel: If cell contains formula examples
One of the most common tasks in Excel is checking whether a cell contains a value of interest. What kind of value can...
Read more >
Hide Zero Values in Excel | Make Cells Blank If the Value is 0
Important Note: When you hide a 0 in a cell using the methods shown in this tutorial, it will only hide the 0...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found