fix(cli-tutor): wrap async resource reducer instead of replacing it#2478
Merged
fix(cli-tutor): wrap async resource reducer instead of replacing it#2478
Conversation
the custom reducer used state={} as default, losing fields like
errorTimes that createAsyncResourceBundle's auto-generated selectors
expect. this caused "can't access property 'slice', resource.errorTimes
is undefined" crash when localStorage.debug is set (redux-bundler debug
mode evaluates all selectors on startup).
follow the same pattern as peers.js: delegate to the original reducer
and layer custom actions on top.
ipfs-gui-bot
pushed a commit
that referenced
this pull request
Feb 17, 2026
## [4.11.1](v4.11.0...v4.11.1) (2026-02-17) CID `bafybeiddnr2jz65byk67sjt6jsu6g7tueddr7odhzzpzli3rgudlbnc6iq` --- ### Bug Fixes * **cli-tutor:** wrap async resource reducer instead of replacing it ([#2478](#2478)) ([0468b72](0468b72)) * **modal:** center overlays using flexbox via renderDialog ([#2477](#2477)) ([9db5775](9db5775)) * **peers:** accept /p2p/ prefix in peer filter input ([#2475](#2475)) ([c86d151](c86d151)), closes [#2468](#2468) ### Trivial Changes * pull transifex translations ([#2474](#2474)) ([6cb5fd5](6cb5fd5))
Collaborator
|
🎉 This PR is included in version 4.11.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
the custom reducer used state={} as default, losing fields like errorTimes that createAsyncResourceBundle's auto-generated selectors expect. this caused
"can't access property 'slice', resource.errorTimes is undefined"crash whenlocalStorage.debugis set (redux-bundler debug mode evaluates all selectors on startup).follow the same pattern as peers.js: delegate to the original reducer and layer custom actions on top.