P
Prisma•2w ago
Rarity

prisma decimal and react router 7

yow guys, since React Router v 7 is released today, is there any plans that Prisma.Decimal is configurable due turbostream? The only problem i got left in my application is prisma.Decimal not being perfectly transfered to the client as an instance i guess or any workarounds for this`?
2 Replies
Nurul
Nurul•2w ago
Hello @Rarity 👋 Would a feature like this solve the issue for you? https://github.com/prisma/prisma/issues/21900
GitHub
Drop support for Decimal.js, replace with "Bring your own library...
Breaking change proposal I propose the following breaking change, to drop support of Decimal.js when using Decimal and return a String instead by default. Optionally, Decimal.js or any other altern...
Rarity
RarityOP•6d ago
hey i took a look into it, as long as i could get a streamable type from the prisma client as an output im fine. If i could code a global behavior for that, like the serialize example in your post, like output: convertDecimalToNumber(value), it would solve my problem and being awesome. is there anything planned, that i could change the type of the outcoming property from the prisma client directly. No need to import Prisma.Decimal everywhere + native types like Number would be streamable via RRv7
Want results from more Discord servers?
Add your server