-
Notifications
You must be signed in to change notification settings - Fork 790
Stable v3 & React 16 compat #658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
I thought it was related to enzyme and update issue but I tried with pure |
|
Is it certainly using the very latest version of |
|
@gaearon yes 😕 |
|
@gaearon I dove into react-deep-force-update and it looks like stateNode is not updated. I think node of type "HostComponent" are not updated. How to force an update of these nodes? |
|
@gaearon problem occurs only with stateless functional components, they are not updated and the function is not called. If I switch it by a class based component, it works. |
|
@gaearon also I used the |
6531c0e to
f4af29d
Compare
|
@gaearon I finally found the problem, in the following case, App will not be reloaded because element instance is not recreated. It was the case in React 15. I think it is a minor regression but it has to be noticed. const App = () => <div />
const element = <App />
ReactDOM.render(<HotContainer>{element}</HotContainer>, main) |
|
Thanks for working vigilantly on React 16 compatibility @neoziro ! :) |
|
@ntucker I try 🙂 |
This PR is a first step to be compatible with React 16, some tests are not passing. I tried to investigate but I need help.