blitz-js / next-superjson-plugin

SuperJSON Plugin for Next.js Pages and Components
198 stars 13 forks source link

getInitialProps is not supported #11

Closed zoriya closed 1 year ago

zoriya commented 2 years ago

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

orionmiz commented 1 year ago

Thanks for suggesting new feature!

This feature will be included in next release.