You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I verified that the issue exists in the latest Next.js canary release
Describe the bug
I'm trying to return props from a custom app getInitialProps function. But for some reason the first own property is always [Function: withSuperJSON] instead of the actual property.
I would expect the above mentioned console log to be ownProps { prop1: 'foo', prop2: 'bar', prop3: 'baz' }
and not ownProps { prop1: [Function: withSuperJSON], prop2: 'bar', prop3: 'baz' }
Verify Next.js canary release
Describe the bug
I'm trying to return props from a custom app getInitialProps function. But for some reason the first own property is always
[Function: withSuperJSON]
instead of the actual property.Example here:
https://github.com/neotrow/next-superjson-test/blob/main/pages/_app.tsx#L30
Expected behavior
I would expect the above mentioned console log to be
ownProps { prop1: 'foo', prop2: 'bar', prop3: 'baz' }
and not
ownProps { prop1: [Function: withSuperJSON], prop2: 'bar', prop3: 'baz' }
Reproduction link
https://github.com/neotrow/next-superjson-test
Version
0.5.9
Config
Additional context
No response
The text was updated successfully, but these errors were encountered: