T
TanStack16mo ago
other-emerald

Does it make sense to start with Tanstack Router for electron.js app

I am familiar with next.js, vue3 and react. I have an App written with next.js that I want to port to the desktop with electron.js. Does it make sense to use Tanstack Router instead of next.js. If I stay with react I should be able to use all the present components as I did not use many next.js native hooks or anything like that. I am asking because I heard that next.js and electron.js are not working together really well. Thank very much in advance Best Regards, Justus
2 Replies
xenial-black
xenial-black16mo ago
I'd say next.js is better suited to web apps than to electron apps, but apparently there are options to use next.js for electron apps... that being said, tanstack router is a good fit for electron apps. just be aware to use a memory history instead of the default browser history.
other-emerald
other-emeraldOP16mo ago
I didnt see your message. Did not think anyone would answer that fast ahaha. Thank you ! Also for the tip with memory history I had no clue. 👍

Did you find this page helpful?