tauri 2.0 / vite & Tanstack
what's the status of tanstack start with vite react?
also what does the compatibility with tauri 2.0 look like?
10 Replies
cloudy-cyan•5mo ago
Start needs a server to execute JS for server functions, api router and SSR, in Tauri there is the concept of a sidecars to run other processes beside the rust backend but I’ll be surprised if it was enough to run start or any other fullstack JS framework without horrendous developers experience.
Il short, you are better of using Tanstack router directly when using Tauri
vicious-gold•5mo ago
yup, that's exactly what we're doing also... running vite, tanstack router and tauri. we are still using tauri 1 for a big engineering app.
what a nice way to build desktop apps.. if you're good with the rust, which i came to enjoy
xenial-black•5mo ago
As far as I know, SSR-enabled apps are not applicable in Tauri v2.0. Apps need to be SPAs. I deployed iOS and Android apps using TanStack Router in a React SPA wrapped by Tauri v2.0.
continuing-cyan•5mo ago
for you guys already using Tauri v2, do you know if there is any service provider offering build and publish to store functionality similar to EAS of Expo?
xenial-black•5mo ago
You can use Crabnebula cloud. They are the one who built Tauri.
https://web.crabnebula.cloud/
conscious-sapphire•5mo ago
Btw, is it possible to setup Tanstack Start + Tauri v2 + IAP for android and iOS?
Im deciding on going for Capicator or Tauri
conscious-sapphire•5mo ago
im following these docs for Tauri v2 + Vite but they are not compatable: https://v2.tauri.app/start/frontend/vite/
continuing-cyan•5mo ago
I guess tanstack router + tauri v2 should work without problems? You might have to wait until the Devinxi branch is merged and released, from that onwards I assume also Start will be compatible
cloudy-cyan•5mo ago
Start requires a JS server to run so it not going to be compatible with Tauri, router works already
continuing-cyan•5mo ago
Isnt that true for all native bundles? It would require that server functions would be called via the web API interface.