Skip to content

fix(AppType): correct generic placement to match runtime props spreading (#42846) - #1

Closed
CJstate wants to merge 1 commit into
canaryfrom
fix/apptype-generic-42846
Closed

CJstate wants to merge 1 commit into
canaryfrom
fix/apptype-generic-42846

Conversation

@CJstate

@CJstate CJstate commented Sep 13, 2026

Copy link
Copy Markdown
Owner

Fixes vercel#42846

Summary

Move generic from nested inside to top-level in .

  • Runtime:
  • Previously: incorrectly nested as
  • Now: spread at top level, retains

Changes

  • : Corrected generic placement and added explanatory comment referencing the issue

…ing (vercel#42846)

- Move generic P from nested inside pageProps to top-level
  - Runtime: MyApp.props = { ...pageProps, ...App.getInitialProps result }
  - Previously: P incorrectly nested as pageProps: P
  - Now: P spread at top level, pageProps retains any

- Add explanatory comment referencing the issue

Fixes vercel#42846
@CJstate CJstate closed this Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parameter on AppType is used incorrectly

1 participant