question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Livereload breaks after running clean script

See original GitHub issue

Steps to Reproduce

  1. git clone https://github.com/mxstbr/react-boilerplate.git && cd react-boilerplate
  2. npm install
  3. npm run clean
  4. npm start
  5. Open editor and browser
  6. Make a change (e.g., change “This is a Homepage!” to “Testing”)

Expected results

The view in the browser updates with the new value

Actual results

The browser does not update until you manually refresh

Details

  • Livereload does work before running npm run clean
  • Using node 5.3.0

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mxstbrcommented, May 21, 2016

That’s because stateless components are currently not hot reloadable, and after running npm run clean all components are stateless ones.

Nothing we can currently fix I’m afraid, but you can change that on your side by changing the component you want to hot reload to class or createClass notation! 👍

0reactions
lock[bot]commented, May 30, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disable livereload in grunt (yeoman) - Stack Overflow
When I run grunt serve, it automatically injects the following code in in the index.html. <script src="http://x.x.x.x:35729/livereload.js?
Read more >
Live reload doesn't work · Issue #2719 · ionic-team/ionic-cli
If it is working for a new app, then something broke it in your project and it's impossible for me to know what...
Read more >
Clean and simple hot-reloading on uninterrupted go ... - ITNEXT
In this article, we will learn how to hot-reload any application component without stopping a running Go app, in an easy, well-structured, ...
Read more >
How to Enable Live-reload on Docker-based Applications with ...
In this post you'll learn how to configure a development environment with live-reload enabled. This will allow you to convert a legacy ...
Read more >
CLI - Docusaurus
docusaurus clear [siteDir] ​. Clear a Docusaurus site's generated assets, caches, build artifacts. We recommend running this command before ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found