Fix regressions from the iD editor upgrade and cross-editor bleed fix (#7279) - #7291
Merged
ramyaragupathy merged 2 commits intoJul 10, 2026
Merged
Conversation
…s, fix stale task data on reopen
|
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.



What type of PR is this? (check all applicable)
Describe this PR
After #7279 (the
@openstreetmap/id2.38.0 → 2.41.2 upgrade + the fix for OSM iD / Sandbox editors bleeding into each other), new issues showed up, and this PR addresses one without reverting the original fix.1. Recently-saved edits not showing without a hard reload
#7279 fixed the bleed by nulling the context on every unmount, forcing a brand new one on every reopen but that also meant a task you just edited and saved would come back from a cold, empty cache instead of the warm one that used to show your own recent changes. On top of that, a fresh context's initial tile fetch could get aborted by our own cache reset, with nothing left to re-request it.
2. Replace Risky Stylesheet toggling with tagged iD contexts
The stylesheet-disable mechanism from the previous commit could tag the wrong in a real session and bleed the whole app's CSS.
Updates
Shared logic is extracted into
utils/idEditorContext.js(also resolves theSonarCloud duplication).