React Hooks support
See original GitHub issueThis 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:
- Created 5 years ago
- Reactions:4
- Comments:9 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Peer dependency makes sense.
Sure, I will, I’m also thinking in setting react-apollo as a peer dependency.