-
Notifications
You must be signed in to change notification settings - Fork 801
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
index.js:2178 React-hot-loader: reconciliation failed could not dive into * while some elements are still present in the tree. #1034
Comments
That's not a real error. Just the way RHL treat text nodes, and the way React doing it - is a bit different. I'll take a look on your example. |
I am seeing this as well. Is there a setting to hide this error from the console? |
I just found that there is no simple way to disable this error, and the only way is to set wrong logLevel. import {setConfig} from 'react-hot-loader';
setConfig({logLevel: 'no-errors-please'}); I will look into the code, look like I could just suspend those errors, if unprocessed part of a tree does not contain any components, thus that's not a bit deal to no process it. |
Would be cool to have this fixed! 😇 |
You can ignore just this error using the https://www.npmjs.com/package/ignore-warnings import ignoreWarnings from 'ignore-warnings';
ignoreWarnings('error', [
'reconciliation failed could not dive into'
]); |
I'm getting this error since I've upgraded to Styled Components V4. |
@daviddelusenet - does this error lead to a real Error, or just trashing your console? |
It trashes my console and the hot reloading also stops working. More people are having the same problem: https://spectrum.chat/thread/1f4aaadf-8d9e-4d36-b7ff-2f58c756ab9a |
I am wondering if this is related to this bug, but when I am running my app with hot reloading and v4, all css seems to get reapplied the moment I start interacting with components. You can reproduce this by changing css in the inspector before interacting with your app. |
@probablyup Do you have any idea if this is due to @styled-components? |
@philiiiiiipp the reapplying css thing is a known bug that will be fixed shortly: styled-components/styled-components#2188 As far as HMR goes, I'm not sure. Does RHL have any compat issues with React.forwardRef? That and using the new context implementation is the only real change that would affect HMR in v4. |
@probablyup - 🥇 💯 🙌 React.forwardRef! That's the problem! Not I know that to fix. |
@theKashey Is this considered fixed with latest release ? ie. 4.6.0 ? |
|
I just enabled React hot loading in my (rather large) app and I'm seeing this error a lot. When it shows up, I have to reload the page to get the app working properly again. I'm not using forwardRef and I'm not using "styled-components". Is there a fix here or is this still an open issue? |
@kaiyoma - provide details then.
|
@theKashey What details would you like? Unfortunately, I won't be able to make a sandbox repro for this because this is happening in a large enterprise app with lots of moving parts. We have a custom HOC for fetching data from a proprietary protocol. If I make changes to the HOC, or a component that uses it, sometimes hot reloading works, but sometimes it doesn't. So far, I haven't been able to find a pattern. Disabling the hot renderer or disabling the broken code seems to defeat the purpose of using the hot reloader in the first place. At that point, I might as well disable hot reloading and refresh the page on every change, which is what we do now. Is there more information somewhere about what this error message means? |
Yes,
Not quite. However - if you did setup "react-hot-dom"(
With 16.8 It is more safe to disable our custom rendered, and we are looking forward to enable |
Setting
|
HMR and RHL are working on different layers:
Changing value of The problem you showed is bound to |
Okay, thanks for the explanation. I guess I'll keep playing around with this. |
Description
I am getting following error for a nested component even parent has a key.
Expected behavior
I think whole parent component should be rendered.
Actual behavior
Doesn't re-render component
Environment
React Hot Loader version:
Run these commands in the project folder and fill in their results:
node -v
: v10.7.0npm -v
: 6.2.0Then, specify:
Reproducible Demo
Please take the time to create a new project that reproduces the issue.
Here is my code, hot-loader is failing on lines 43-49, where
CommentAuthor
andCommentTime
components are being rendered within amap
(Console output: https://monosnap.com/file/BWtpuOYQBtULWpRf5qQnPRcg18K30h#embed)https://codesandbox.io/embed/9312qo9k4o
The text was updated successfully, but these errors were encountered: