[Bug]: Git create branch times out on the frontend even though the branch is created on the server
Is there an existing issue for this?
- [X] I have searched the existing issues
Description
https://github.com/user-attachments/assets/9801789a-23cb-410f-880e-ecc02415763a
Notice how I have to refresh the list of branches to see the new branch and then manually visit it.
Steps To Reproduce
- Crate new branch from master.
(Found the issue on internal)
Public Sample App
No response
Environment
Production
Severity
Low (Cosmetic UI issues)
Issue video log
No response
Version
v1.35-snapshot
Hi Team, I took some time to dig into the current setup and wanted to share what I found.
Right now, we’re using the window object to post messages when a user logs in (see callback.tsx#L28 ). I think it might be better to use the Broadcast Channel API to let all open tabs know about the login.
The issue with postMessage is that it only works if the current window has an opener, which is null when users open new tabs with cmd+click or by clicking a link with target="_blank".
Switching to the Broadcast Channel API would ensure that all tabs receive the login notification, no matter how they were opened.
What do you think?
It sounds like that is the solution. But I'm not so familiar with web development that I can just tell. 😅 But I would code in the change as a suggestion! :D
Hi @CR4ZED,
The suggested solution sounds good! Feel free to submit a PR and @sshanzel can help you with everything you need
sure, I'll a raise a PR
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.