chore: React 17 compatibility adjustments#55
Draft
bosun-ai[bot] wants to merge 48 commits intoalphafrom
Draft
Conversation
added 25 commits
December 21, 2025 15:05
added 19 commits
December 21, 2025 15:45
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Dependency updates
reactandreact-domremain pinned at17.0.2, withreact-hot-loaderheld at the latest v4 and@hot-loader/react-domadded for compatibility. No additional package upgrades were necessary for this set of changes.yarn.lockwas regenerated after reinstalling withnvm use && yarn install. Note:web-push@3.6.7now expects Node ≥16, so future installs may require raising the Node version if that dependency stays.Runtime and event handling updates
src/components/gallery/browser.js,src/views/threadSlider/index.js): listeners now use the capture phase to preserve behavior after React 17’s document-level delegation changes; cleanup timing now relies onuseLayoutEffectso the title bar resets synchronously.src/views/status/index.js):online/offline/visibilitychangehandlers are registered in capture mode and consistently removed on unmount to keep network state updates reliable.src/views/community/components/communityFeeds.js):useRefnow tracks the latest tab so the asynchronous cleanup invoked by React 17 stores the correct scroll key.src/store/index.js) andhot-routesshim have been removed; the app now importssrc/routesdirectly, simplifying the bundle after the upgrade removed reliance onreact-hot-loaderinternals.Tooling & CI
.github/workflows/regression-tests.ymlto run the regression suite on pushes and pull requests using Node 12 and Yarn 1.22.22.web-push@3.6.7requires Node ≥16, so this workflow may need a Node version bump once that dependency is exercised in CI.Testing
regression-testsGitHub Action is expected to validate viayarn test:regression.Reviewer checklist
web-push@3.6.7when tests execute.This pull request is created by bosun, a code maintenance automation platform. For more information, visit bosun.ai.