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.