Skip to content
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

HCAP-1306 fix: react-error-overlay fix, enable auto refresh #809

Merged
merged 2 commits into from
Aug 23, 2022

Conversation

arranfw
Copy link
Contributor

@arranfw arranfw commented Aug 23, 2022

This fixes the app becoming unresponsive after updating files and also triggers a browser refresh which should save us some effort

Stopgap until we upgrade packages across the board and get live-reload

The preinstall script forces the error overlay resolution but it causes a major package-lock diff ><

https://freshworks.atlassian.net/browse/HCAP-1306

Resources:

@arranfw arranfw changed the title fix: react-error-overlay fix, disable fast refresh fix: react-error-overlay fix, enable auto refresh Aug 23, 2022
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@arranfw arranfw changed the title fix: react-error-overlay fix, enable auto refresh HCAP-1306 fix: react-error-overlay fix, enable auto refresh Aug 23, 2022
@arranfw arranfw merged commit 02bd24b into master Aug 23, 2022
@arranfw arranfw deleted the fix/hot-reload branch August 23, 2022 20:02
rhattie-ey added a commit that referenced this pull request Jan 28, 2023
This package was added to the preinstall process to fix bug
HCAP-1306. (See #809.)
However, its presence caused package-lock generation
to be non-deterministic, causing a new lock file every run.

With the current dependencies, `react-error-overlay` will not go
under 6.0.9 anyways, so no regression should occur.
rhattie-ey added a commit that referenced this pull request Feb 3, 2023
#868)

* Updated some vulnerable client packages

Updated all packages without breaking update in /client.
Also updated the project-wide `moment` version.

* Updated some vulnerable server packages

Ran `npm audit fix` on /server.

* Updated vulnerable server dependencies

Updated:
* `body-parser` from 1.19 to 1.20
* `express` from 4.17 to 4.18
* `nodemon` from 2.0.4 to 2.0.20

* Updated client `package-lock`

* Removed `npm-force-resolutions` from client

This package was added to the preinstall process to fix bug
HCAP-1306. (See #809.)
However, its presence caused package-lock generation
to be non-deterministic, causing a new lock file every run.

With the current dependencies, `react-error-overlay` will not go
under 6.0.9 anyways, so no regression should occur.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants