4 ms·
It's in the pursuit of type inference and developer ergonomics. The problem without them in this day and age is how do you get your backend and frontend types
by chrysoprace 1y ago
It's in the pursuit of type inference and developer ergonomics.
The problem without them in this day and age is how do you get your backend and frontend types in sync? You can manually update your types but this is tedious and prone to error (this is what we do at work), but having type errors immediately flagged on the client when you try to use a property wrong _is nice_.
The problem in this case is that it's so opaque that you have other issues like this one. Server Functions are unfortunately a low-level API in React and so their actual implementation is left up to frameworks.