Observed:
All texts are there after first load
After make a css code change, which triggers hot load, all texts are gone
Make any css change within browser, all texts will be back
In console, font file will be reloaded due to @font-face src attribute, not sure whether the problem is caused by this.
Good catch ! Super sister
Have you found any solution for this? Anyways, I'm sure that this is not related to react-hot-loader. I have a project with exactly the same problem and I do not have react hot loader there. I think it is rather a problem with Hot Module Replacement in webpack.
Yeah, this doesn't seem related to React Hot Loader, I'd recommend taking a look at one of the CSS/SCSS loaders, or possibly Webpack itself.
I had an identical problem. It has turned out to solve through the use of url-loader instead of file-loader for fonts files, but only to development webpack config.
{
test: /\.(eot|svg|ttf|woff|woff2)$/,
loader: 'url-loader', // file-loader for production
},
@ramilzakirov thank you. This has been a PITA for a while!
Most helpful comment
I had an identical problem. It has turned out to solve through the use of
url-loaderinstead offile-loaderfor fonts files, but only to development webpack config.