Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect AppState type in resolveFields #848

Open
chrisvxd opened this issue Jan 27, 2025 · 0 comments
Open

Incorrect AppState type in resolveFields #848

chrisvxd opened this issue Jan 27, 2025 · 0 comments
Labels
ready Assumed ready enough to start type: bug 🐛

Comments

@chrisvxd
Copy link
Member

The appState parameter passed to resolveFields() is not aware of user data shape type (i.e. root props), and the user must currently cast the type.

{
  resolveFields: (_, { appState }) => {
    const rootProps = appState.data.root.props as RootProps;
    
    return {}
  }
}
@chrisvxd chrisvxd added ready Assumed ready enough to start type: bug 🐛 labels Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready Assumed ready enough to start type: bug 🐛
Projects
None yet
Development

No branches or pull requests

1 participant