I keep seeing this warning in my new app:
warn(prisma-client) This is the 10th instance of Prisma Client being started. Make sure this is intentional
How closely should I pay attention to this? I'm assuming I'm doing something wrong here. My typical setup looks like this:
export let loader = async({ params }) => {
const prisma = new PrismaClient();
await prisma.$connect();
const post = await prisma.post.findFirst({
where: {
id: parseInt(params.postId)
}
})
prisma.$disconnect();
return post;
}
Should i initial PrismaClient only 1 time. Is that the purpose of the warning?