News for hackers. Stuff that matters.
Re:React Native for Windows and Mac by kevmo314 on Tuesday May 12, 2020 @06:04PM (#23160558)
Electron can't do multiple windows or consistent rendering?

Legit question, I just started using Electron, hadn't heard of the former and thought the latter was a selling point because all platforms wrapped Electron's Chrome.

Re:React Native for Windows and Mac by 43920 on Tuesday May 12, 2020 @06:10PM (#23160617)
Electron supports multiple windows, but it ends up being annoying to do because each window runs in its own process. If your app has any kind of central state that's shared between windows, you end up copying data between processes frequently, which can be slow.

Rendering consistency is generally pretty good; I haven't run into any issues with that.

Re:React Native for Windows and Mac by freefriedrice on Tuesday May 12, 2020 @08:10PM (#23161770)
This bugs me to no end about Electron. The one module that existed to implement cross window / process communication is deprecated with no alternative. I haven't found a solution for multithreading in electron without killing the base process (which they explicitly say NOT to do compute in) or the rendering process (duh).
Re:React Native for Windows and Mac by 43920 on Tuesday May 12, 2020 @09:14PM (#23162299)
Web workers launched from the renderer work fairly well if you just need compute. I think I've also seen some apps add an additional BrowserWindow that's never displayed onscreen, although that will increase your memory overhead.
Re:React Native for Windows and Mac by virtue3 on Tuesday May 12, 2020 @06:25PM (#23160803)
just ship everything with sqlite :) it'll be fine
Re:React Native for Windows and Mac by qppo on Tuesday May 12, 2020 @06:12PM (#23160657)
This list is && not ||
Re:React Native for Windows and Mac by kevmo314 on Tuesday May 12, 2020 @06:15PM (#23160696)
Wouldn't it have been more concise then to just state that you "needed a framework that supported rendering to a window that isn't owned by the UI being rendered or created by the framework"? I guess now I'm even more confused about what Electron supports...

EDIT: Ok I see now, you listed your requirements and just stated that Electron doesn't satisfy them. The construct is confusing to me because the way it's worded seems to suggest Electron doesn't satisfy any of them, but I understand now.

Re:React Native for Windows and Mac by qppo on Tuesday May 12, 2020 @06:46PM (#23161031)
Yea sorry for being unclear, I meant I need to do all those things. I have evaluated electron in the past and tried to hack the things I need unsuccessfully, but I don't keep up with it so I've edited my comment.