Open amin3141 opened 4 years ago
If you define:
function camelCase(prop) {
let result = "";
for (const part of prop.split("_")) {
result += part.charAt(0).toUpperCase() + part.slice(1);
}
return result;
}
Then let newKey = "set" + camelCase(prop);
fixes the problem for me.
Hey Amin, thanks for checking it out. We'll add that in there this weekend.
Imagine a I have a message like this:
This generates a proto js that looks like this:
Now, imagine that my message is defined like this:
Then this code in
reactrpc/index.js
causes a bug:newKey ends up being
Customerid
instead ofCustomerId
.