-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
What's the purpose of the file under example/src/server.ts? Do you need a server because prisma is required to work on the server? I can understand it, I have created many nextjs apps and ofc I have seen prisma fail to work from the client code, so I used Server Actions to make server do prisma stuff and return data to the client safely.
But when it comes to react native there's no such thing as a server bcs the whole app is client. It seems to me that this file creates an "artificial server" on a client and all prisma calls are made on the behalf of this "server" that runs on the user's phone in this current app. Do I understand it correctly?
🐱
Ctrl-Mota
Metadata
Metadata
Assignees
Labels
No labels