Closed samtgarson closed 1 year ago
It seems that children passed to Client components with data-superjson attributes are not present in the client component?
children
data-superjson
I would expect children to be passed through transparently to the Client component as it is without the superjson integration.
https://github.com/samtgarson/appdir-reproduction-app/tree/superjson
0.5.3
/** @type {import("next").NextConfig} */ module.exports = { reactStrictMode: true, experimental: { appDir: true, swcPlugins: [["next-superjson-plugin", { excluded: ["children"] }]], }, }; (Have tried with and without the `excluded` option)
No response
Thanks for reporting an issue!
The plugin v0.5.4 with bug fixes has been released.
Thanks for the quick fix 🙌
Verify Next.js canary release
Describe the bug
It seems that
children
passed to Client components withdata-superjson
attributes are not present in the client component?Expected behavior
I would expect
children
to be passed through transparently to the Client component as it is without the superjson integration.Reproduction link
https://github.com/samtgarson/appdir-reproduction-app/tree/superjson
Version
0.5.3
Config
Additional context
No response