Support Decimal passed to Client Components from Server Components #68797
omararturo
started this conversation in
Ideas
Replies: 1 comment
-
This sounds like something React has to implement, doesn't it? I'll reserve my opinions on trying to do this with an object that's custom defined in user land, and not a JavaScript native/primitive |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Non-Goals
No response
Background
Nextjs support Date object. Decimal is a type used for many ORM, like Prisma. Manual conversion is a bad and unscalable solution.
Proposal
I propose that Decimal was added to a communication from Server Component to Client Component like a Date, this feature will be good received by the community
Beta Was this translation helpful? Give feedback.
All reactions