In my app I want to create a tabbed view, so clicking on a tab will change the contents of the main body. Is there a preferred way to do this?
I thought about having a html page per tab, each with the tab bar included at the top. Then when the tab (essentially a link) gets clicked, send an IPC message back to the main process, and tell it to load a new url in the current window. However this feels a bit slow and isnt very smooth because when a new url is loaded theres a bit of delay before the user sees the new page/tab contents
Whats the best way to handle switching between different “pages” within the same window?