Skip to content

Slow Intellisense #2318

@imdkbj

Description

@imdkbj

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions