Skip to content

bug: createHydrationHelpers doesn't serialize inputs #6802

Open
TanStack/query
#9308
@saiichihashimoto

Description

@saiichihashimoto

Provide environment information

When using createHydrationHelpers, everything is serialized except inputs. So having an input that's a Date will cause errors.

Describe the bug

When using createHydrationHelpers, everything is serialized except inputs. So having an input that's a Date will cause errors.

To reproduce

Prefetch anything using createHydrationHelpers with Date or mongodb's ObjectId as an input, using superjson and you'll still get an error.

Additional information

No response

๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ฆ Contributing

  • ๐Ÿ™‹โ€โ™‚๏ธ Yes, I'd be down to file a PR fixing this bug!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions