-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(_official-blog-tutorial): fix useActionData
/useLoaderData
usage
#83
fix(_official-blog-tutorial): fix useActionData
/useLoaderData
usage
#83
Conversation
7604b78
to
6d7b9d8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as the other tutorial. Thanks!
b5e5863
to
ae1f7e9
Compare
unfortunately this causes a bunch of typescript errors due to only returning the error for the specific input resulting in Property 'email' does not exist on type 'SerializeObject<UndefinedToOptional<{ email: string; }>> | SerializeObject<UndefinedToOptional<{ password: string; }>>'. this should be fixable in remix itself by concatenating all the keys into a single edit: we should probably run |
ae1f7e9
to
fc5d2de
Compare
@mcansh Fixed these errors
Although that would be a good idea to not have these issues, it will require an |
oof yeah that's true 😞 |
unrelated to changes here, but looks like React now wants app/entry.client.tsx:7:5 - error TS2322: Type 'Root' is not assignable to type 'VoidOrUndefinedOnly'.
7 hydrateRoot(
~~~~~~~~~~~~
8 document,
~~~~~~~~~~~~~~~
...
11 </StrictMode>
~~~~~~~~~~~~~~~~~~~
12 )
~~~~~
node_modules/@types/react/index.d.ts:1107:38
1107 export type TransitionFunction = () => VoidOrUndefinedOnly;
~~~~~~~~~~~~~~~~~~~~~~~~~
The expected type comes from the return type of this signature.
Found 1 error.
error Command failed with exit code 1. - startTransition(() =>
+ startTransition(() => {
hydrateRoot(
document,
<StrictMode>
<RemixBrowser />
</StrictMode>
)
- );
+ }); |
I'll create a separate PR for it 👍 |
😬 #91 - you can take on the templates if you'd like 😉 |
Would love to find a solution for this though 🤔 Maybe a It would still take a long time to run |
unless we can tell which example changed and only run tsc on that |
See https://github.com/remix-run/remix/releases/tag/remix@1.6.5
Closes #34