Repository navigation
Use async menu popup - #998
Conversation
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
@kevinsawicki if you cast To properly fix it it looks like we need to update this signature - I see this is what 1.6.1 looks like https://electron.atom.io/docs/api/menu/#menupopupbrowserwindow-x-y-positioningitem |
265034b to
91942af
Compare
|
@shiftkey thanks for that 👍 Pushed an update. |
|
@kevinsawicki just pulled this down - doesn't seem to make a huge difference on our side, but that's probably because we're not letting the user do anything noticeable on the render loop at that point to highlight the issue. I've opened #1003 to track the type signature work needed, but I'll let someone else from @desktop/core chime on when we want to merge this... |
|
Let's try it out and get some mileage for the electron team |
This hack shouldn't be necessary as of #998. Let's try it and see if that theory holds
This is a new Electron option that came out today that I would love to know if it works well in Desktop.
It allows
menu.popupto return immediately so the render loop doesn't stall on macOS. There is also a newmenu.closePopupas well in case you ever need to close an open menu.See electron/electron#8702 for more details.
This fails to compile locally for me:
Any typescript tips for working around it?