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
When using CellSuccessProps the TData type on these fields used to be typed, but now are always any:
queryResult.fetchMore.data
queryResult.previousData
The TData generic type that was passed in with CellSuccessProps<TData, ....> used to be passed down and inherited by QueryOperationResult
How do we reproduce the bug?
Create a new RW app: yarn create redwood-app my-redwood-project --typescript
Add the "Post" example model in schama.prisma
yarn rw prisma migrate dev
yarn redwood generate scaffold post
Add the code below in the Success function of web/src/components/Post/PostCell/PostCell.tsx
if('variables'inqueryResult){const{ data }=awaitqueryResult.fetchMore({variables: {id: post.id},})// data is `any` but should be `FindPostById`const_data=data// previousData is `any` but should be `FindPostById`const_previousData=queryResult.previousData}
What's your environment? (If it applies)
N/A
Are you interested in working on this?
I'm interested in working on this
The text was updated successfully, but these errors were encountered:
What's not working?
When using
CellSuccessProps
the TData type on these fields used to be typed, but now are alwaysany
:queryResult.fetchMore.data
queryResult.previousData
The TData generic type that was passed in with
CellSuccessProps<TData, ....>
used to be passed down and inherited byQueryOperationResult
How do we reproduce the bug?
yarn create redwood-app my-redwood-project --typescript
schama.prisma
yarn rw prisma migrate dev
yarn redwood generate scaffold post
Success
function ofweb/src/components/Post/PostCell/PostCell.tsx
What's your environment? (If it applies)
Are you interested in working on this?
The text was updated successfully, but these errors were encountered: