-
Notifications
You must be signed in to change notification settings - Fork 23
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
defer/<TypedAwait> - Date Type not converted back to Date #36
Comments
Same issue here, running Remix 2.3.1 |
OK I found the issue in my case: the Promise was nested inside the loader data. Looking at the code, it seems that |
I'm also running into this issue. Following the example in the README, it seems as though the data gets properly serialized by I can also see that when navigating back to the deferred route, the previously resolved data is correctly deserialized for a brief moment before the loader runs again. Notice the flicker of typeddefer.mp4 |
Hi,
I'm using the typeddefer function of the package and run into some bug where Date objects are not converted back to Date after using
<TypedAwait />
.The VS Code says it's of type
Date
when in reality it's astring
. This causes a lot of issues.You can find the basic example here:
https://stackblitz.com/edit/remix-run-remix-v11hmg?file=app%2Froutes%2F_index.tsx
The text was updated successfully, but these errors were encountered: