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.

Investigate what it would take to support function properties

See original GitHub issue

e.g.

class App extends Component {
  handleClick = () => {
    this.setState(...)
  }
}

One way to approach this would be to hoist the bodies of the function properties into hidden methods on the prototype with mangled names. This would be unobservable to the user but make them available for react-proxy to see and hot reload.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
gaearoncommented, Apr 19, 2016

Yeah I get it, but if Babel is able to compile arrow functions correctly, so can we 😄 . Just a matter of having enough tests.

0reactions
calescecommented, Sep 15, 2016

Added by #322, and out in 3.0.0-beta.4, thanks @nfcampos!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Support function - Wikipedia
Furthermore, the support function, as a function of the set A, is compatible with many natural geometric operations, like scaling, translation, rotation and ......
Read more >
What is the support function $h_K(x)\equiv \sup_{z \in K ...
If you take K to be convex, the support function is, in some sense, a tool for a dual representation of the set...
Read more >
1629. Protection Of Government Property -- Investigative ...
Under the Act, Inspectors General are required to report to the Attorney General any information which provides them with "reasonable grounds to ...
Read more >
Planning and Carrying Out Investigations - NGSS@NSTA
Plan an investigation individually and collaboratively, and in the design: identify independent and dependent variables and controls, what tools are needed to  ......
Read more >
Emergency Support Function (ESF) #13 - FEMA
Investigation Annex. ESF #13 manages support by coordinating Federal resources related to public safety and security to preserve life, protect property ...
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