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.

React Hooks support

See original GitHub issue

This issue is not to allow the usage of withApollo as a hook, because it needs to have access to getInitialProps, and it’s a static method. This is to have a reminder that as soon as react-apollo@2.3.0-beta.1 gets out the dependency needs to be updated, otherwise getDataFromTree will break the new react hooks. Maybe I should create a beta version of this package too.

Related to react-apollo#2533 and react-apollo#2541

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
lamtranwebcommented, Nov 16, 2018

Peer dependency makes sense.

1reaction
lfadescommented, Nov 16, 2018

Sure, I will, I’m also thinking in setting react-apollo as a peer dependency.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Introducing Hooks - React
React 16.8.0 is the first release to support Hooks. When upgrading, don't forget to update all packages, including React DOM. React Native has...
Read more >
Hooks at a Glance - React
Hooks are a new addition in React 16.8. They let you use state and other React features without writing a class. Hooks are...
Read more >
Hooks API Reference - React
Hooks are a new addition in React 16.8. They let you use state and other React features without writing a class. This page...
Read more >
React v16.8: The One With Hooks
React Hooks are now supported by React DevTools. They are also supported in the latest Flow and TypeScript definitions for React.
Read more >
Hooks FAQ - React
React Native 0.59 and above support Hooks. Do I need to rewrite all my class components? No. There are no plans to remove...
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