Frameworks for Tauri #7470
Replies: 2 comments 3 replies
-
I als would be interested in getting some valuable feedback regarding nextjs and/or leptos. |
Beta Was this translation helpful? Give feedback.
-
I've been using SvelteKit with SSG-mode with Tauri to great success. Still trying to figure out a way to generate full type-safe Typescript calls like tRPC without having to open up a new socket. |
Beta Was this translation helpful? Give feedback.
-
Hi there,
I just got into tauri as a side-project because I wanted more Rust in my life. I simply ported my nextjs13-Project to tauri and it worked quite well so far. I needed to seperate client and server of course which is why I set up a simple Websocket-TRPC-Server and wanted to connect to that.
The server works just fine. But the client doesn't. Due to nextjs rerendering the page "server-side" first,
window
isundefined
and I can't really disable SSR, there's a package (incompatible with the current React-Version) and settings likedynamic()
but none of them seem to do the trick and by now, almost all the files have a"use client"
-directive at the top.So clearly, Nextjs is kinda cool, but at the current state of turbopack and appDir not very well suited. (It's react as well and I wanted less react in the future).
I'll see if I can fix the problem anyways (or maybe just ditch the websocket) but I'm also trying to explore other Frameworks. I guess none of them are made for client-only.
What about Svelte(Kit)? Or maybe even full-on-Rust with Leptos or Yew?
Personally, I'm looking for the ability to create a typesafe (trpc-like) backend running prisma (and/or a typesafe query-builder) and a tauri-app with multiple client including authentication. Most of which can be done through trpc and trpc-shield afaik.
Or maybe, just maybe, I'm completelly off the track here and someone needs to get me back to the road.
Looking forward to an exciting discussion.
Beta Was this translation helpful? Give feedback.
All reactions