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.

Support for a "data" prop

See original GitHub issue

Coming from react-window I’m missing the itemData prop, which allows for passing some extra arbitrary data down to children, it’s pretty handy and makes for much cleaner code that doesn’t need to resort to wrapping components, using React’s contexts, or using some other more convoluted way to pass state down the tree.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
petyosicommented, Nov 25, 2020

data is available in v1 - check #203.

1reaction
petyosicommented, Aug 4, 2020

Agreed. I understand the practical aspect of the data context and am currently looking into it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prop Data Support
Knowledge base · General · Product Enhancements · Prop Data Management System · E-mail Signatures · Domains · Prop Data Manage.
Read more >
Using data attributes - Learn web development | MDN
This article is adapted from Using data attributes in JavaScript and CSS on hacks.mozilla.org. Custom attributes are also supported in SVG 2; ...
Read more >
What is “Props” and how to use it in React? - ITNEXT
Furthermore, props data is read-only, which means that data coming from the parent should not be changed by child components. OK now let's...
Read more >
.prop() | jQuery API Documentation
In Internet Explorer prior to version 9, using .prop() to set a DOM element property to anything other than a simple primitive value...
Read more >
getInitialProps - Data Fetching - Next.js
This new directory has support for colocated data fetching at the component ... is used to asynchronously fetch some data, which then populates...
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