Skip to content

feat: simplified types for useLoaderData, useActionData, useFetcher, SerializeFrom#6449

Merged
pcattori merged 1 commit into
devfrom
pedro/pretty-serialize-from
May 22, 2023
Merged

feat: simplified types for useLoaderData, useActionData, useFetcher, SerializeFrom#6449
pcattori merged 1 commit into
devfrom
pedro/pretty-serialize-from

Conversation

@pcattori

@pcattori pcattori commented May 22, 2023

Copy link
Copy Markdown
Contributor

Prototype:

Screenshot_2023-05-02_at_4 49 26_PM

Usage:

Screenshot 2023-05-22 at 10 36 49 AM

@changeset-bot

changeset-bot Bot commented May 22, 2023

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 30cedcd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 18 packages
Name Type
@remix-run/server-runtime Minor
@remix-run/react Minor
@remix-run/cloudflare Minor
@remix-run/deno Minor
@remix-run/dev Minor
@remix-run/node Minor
@remix-run/testing Minor
@remix-run/cloudflare-pages Minor
@remix-run/cloudflare-workers Minor
create-remix Minor
@remix-run/css-bundle Minor
@remix-run/architect Minor
@remix-run/express Minor
@remix-run/netlify Minor
@remix-run/serve Minor
@remix-run/vercel Minor
remix Minor
@remix-run/eslint-config Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pcattori pcattori force-pushed the pedro/pretty-serialize-from branch from 2adf546 to 30cedcd Compare May 22, 2023 14:28
@pcattori pcattori changed the title feat: simplified types for SerializeFrom feat: simplified types for Serialize (useLoaderData, useActionData, useFetcher, SerializeFrom) May 22, 2023
@pcattori pcattori changed the title feat: simplified types for Serialize (useLoaderData, useActionData, useFetcher, SerializeFrom) feat: simplified types for useLoaderData, useActionData, useFetcher, SerializeFrom May 22, 2023
@pcattori pcattori merged commit d56574b into dev May 22, 2023
@pcattori pcattori deleted the pedro/pretty-serialize-from branch May 22, 2023 15:20
@juanpprieto

Copy link
Copy Markdown

This is great to see <3. Will this impact/simplify defer types too?

@pcattori

Copy link
Copy Markdown
Contributor Author

This is great to see <3. Will this impact/simplify defer types too?

Hey JP 👋

Yes, SerializeDeferred is handled as a subcase of Serialize, so those types should be nicer as well.

@github-actions

Copy link
Copy Markdown
Contributor

🤖 Hello there,

We just published version v0.0.0-nightly-d56574b-20230523 which includes this pull request. If you'd like to take it for a test run please try it out and let us know what you think!

Thanks!

@dev-xo

dev-xo commented Jun 10, 2023

Copy link
Copy Markdown

Thank you for this one @pcattori!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants