-
-
Notifications
You must be signed in to change notification settings - Fork 126
Open
Description
Description and expected behavior
My Intellisense became very slow after using zenstack specially enhance. I am trying to use enhanced prisma in the server action and look like VSCode doesn't like that.
Is enhanced prisma not allowed in server action! This need to be used in route only?
Environment (please complete the following information):
- ZenStack version: 2.22.1
- Prisma version: 6.19.0
- Database type: Postgresql
- Stack: NextJs 15.5.7 with app-dir
Additional context
// db.enhanced.ts
import { enhance } from '@zenstackhq/runtime'
import { getUser } from 'src/lib/sso-service'
import { db } from './db'
export async function enhancedPrisma() {
const user = await getUser()
return enhance(db, { user })
}If i am making this like as below then Intellisense is quite stable.
import { db } from './db'
export async function enhancedPrisma() {
return db
}Metadata
Metadata
Assignees
Labels
No labels