You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm going through your stellar App Tutorial and loving it. However, I spotted what appears to be a small discrepancy.
Once validation has been added in, the second paragraph after the screenshot says: "First I want you to notice that I've added an ActionData type so we could get some type safety". However, there is no ActionData type in the code example, only an actionData value.
Furthermore, the fourth paragraph states: "The badRequest helper function is important because it gives us typechecking that ensures our return value is of type ActionData, while still returning the accurate HTTP status, 400 Bad Request, to the client. If we just return the ActionData value, that would result in a 200 OK response, which isn't suitable since the form submission had errors."
However, the code example for the badRequest helper uses a generic type T, not the elusive ActionData type.
A small thing, but I had to double check a couple of times to make sure I hadn't missed anything (I sure hope I haven't actually missed anything).
Anyways loving Remix so far, keep up the great work!
Expected Behavior
I expected to see the ActionData type in the code examples
Actual Behavior
I didn't see the ActionData type in the code examples
The text was updated successfully, but these errors were encountered:
What version of Remix are you using?
N/A
Steps to Reproduce
Hey folks,
I'm going through your stellar App Tutorial and loving it. However, I spotted what appears to be a small discrepancy.
Once validation has been added in, the second paragraph after the screenshot says: "First I want you to notice that I've added an ActionData type so we could get some type safety". However, there is no ActionData type in the code example, only an actionData value.
Furthermore, the fourth paragraph states: "The badRequest helper function is important because it gives us typechecking that ensures our return value is of type ActionData, while still returning the accurate HTTP status, 400 Bad Request, to the client. If we just return the ActionData value, that would result in a 200 OK response, which isn't suitable since the form submission had errors."
However, the code example for the badRequest helper uses a generic type T, not the elusive ActionData type.
A small thing, but I had to double check a couple of times to make sure I hadn't missed anything (I sure hope I haven't actually missed anything).
Anyways loving Remix so far, keep up the great work!
Expected Behavior
I expected to see the ActionData type in the code examples
Actual Behavior
I didn't see the ActionData type in the code examples
The text was updated successfully, but these errors were encountered: