blitz-js / next-superjson-plugin

SuperJSON Plugin for Next.js Pages and Components

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

getInitialProps is not supported

zoriya opened this issue · comments

Describe the bug

getInitialProps is not the recommended way of passing props to components anymore, but it has not been deprecated. I think this plugin should support it.

Expected behavior

The getInitialProps output should be converted to SuperJson.

Reproduction link

No response

Version

0.3.0

Config

module.exports = {
	reactStrictMode: true,
	swcMinify: true,
	experimental: {
		swcPlugins: [
			[
				"next-superjson-plugin",
				{
					excluded: [],
				},
			],
		],
	},
}

Additional context

No response

Thanks for suggesting new feature!

This feature will be included in next release.