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.

Hot Reload Breaks with Version 1.9.0

See original GitHub issue

Description

After upgrading resium to latest version and updating my webpack config to work with new ESM version of CesiumJS, I noticed that the hot reload no longer functions like it used to.

Example

If you change the color of an entity, the entity should update without changing the orientation of the globe (or anything else). After v1.8.1, any change with re-render the globe (even changes not associated with Cesium/resium). Basically, the globe flashes and everything is “reset” to initial visualization (with updated entities and stuff).

Initial state

initial

Change globe orientation

move

Post update entity color in code

functional hot reload - this is what happens with resium v1.8.1 and below 😄

move_updated

Post update entity color in code

new “reset” hot reload - this is what happens after resium v1.8.1 😞

move_updated_reset

The app I used for testing (with current versions and config) can be created using:

mkdir test-app && cd test-app
npx tomo-cli new app --use-react --with-cesium

An example app with the pre-ESM version of CesiumJS can be found here

After a little detective work, I found that the issue manifests itself after v1.8.1. That is v1.8.1 has hot reload with previous function (with ESM and non-ESM versions of CesiumJS). Starting with v1.9.0, hot reload no longer works as it did (per description above) and in some cases fails to hot reload or refresh at all and instead presents a this._view is undefined error…

I step-updated all the associated dependencies and narrowed the issue down to resium. I was able to get my project to hot reload as desired using resium v1.8.1 with CesiumJS ^1.60.0 and ^1.65.0. Hot reload function was lost with both versions of CesiumJS with resium versions after v1.8.1. Code was tested with old versions of react, react-dom, and react-hot-reload.

I can try to provide more data if you need it and will help in any way I can. Any ideas from my description?

Keep up the great work! I love this project and reeeeeally want to use the current versions with hot reload as it once was 😃

ありがとうございます!

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
rot1024commented, Feb 4, 2020

I want to fix the cause fundamentally, but I’m busy right now so it will take some time.

1reaction
rot1024commented, Jan 30, 2020

Workaround: put this code on index.js or index.tsx

import { setConfig } from "react-hot-loader";

setConfig({ reloadHooks: false });
Read more comments on GitHub >

github_iconTop Results From Across the Web

Hot Reload Breaks with Version 1.9.0 · Issue #206 - GitHub
After upgrading resium to latest version and updating my webpack config to work with new ESM version of CesiumJS, I noticed that the...
Read more >
Hot module reload is not working on my nextjs app
Got help from @felixmosh. There was issue because of my folders were case was not matching route case. Fixed the issues by changing...
Read more >
NiFi Release Notes - Apache Software Foundation
Version 1.13.1 of Apache NiFi is an improvement and bug fix release. Release Date: March 15, 2021. Lowlight of the 1.13.1 release includes:...
Read more >
Changelog - Streamlit Docs
Version 1.9.0. Release date: May 4, ... Streamlit can auto-reload when files in sub-directories change. ... Break out of your Streamlit app with...
Read more >
Chronograf 1.9 release notes - InfluxData Documentation
Allow configuration of TLS ciphers and versions. Bug Fixes. Disable default dashboard auto-refresh. Fix to user migration. Add isPresent filter to rule ...
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