Repository navigation
Conversation
conversation-activity-filter: race condition
There was a problem hiding this comment.
A few notes:
- we already observe selectors, MutationObserver isn't needed
- individual items are already observed and "marked" by their type, it's CSS that then takes care of hiding any items that match the current state
- if the current state isn't reaching the items, it just means that it needs to be stored higher up in the DOM to a common ancestor
In short the only fix should be to update the single selector where the state is stored, ensuring that this element isn't cleared by GitHub.
04cfe58 to
51299bd
Compare
|
Please avoid force-pushing to this PR. It makes it harder for reviewers to track what changed since the last review. Just push new commits on top of the branch instead — PRs are squashed on merge, so the commit history doesn't need to be clean. |
51299bd to
55330a6
Compare
|
@fregante updated. as you said, moving to an upper container was the only thing needed. I'm just not sure what I picked is acceptable or if there's a better alternative. seems to be the lowest one that fixed the behavior |
|
I can't reproduce what you're suggesting or the repro steps are not clear. I don’t think it has anything to do with race conditions, but I'm sure that there's some Ajax-related issue (e.g. set value, change page) that I'm trying to figure out in #9999 |
|
I'll see if I can record a video on this, or even try with different browsers |
|
I made substantial changes to the state logic in #9999. Let me know if it fixes it for you. |
I'm running into what seems to be a race condition, where resolved comments are loaded into the page after the activity-filter triggers, and they end up still showing
browser: zen browser 1.21.9b
os: NixOS
the fix in this PR works for me, though I'm not fully sure it should be necessary, or if it's the best approach
screenshot before the fix

the linear and vercel bot comments are hidden if I toggle the behavior. but after a hard refresh they consistently appear
with this fix they get consistently hidden
disclaimer: claude code used to help onboard myself to the repo and debug this. all the writing and manual testing is my own