Passing props to Cells

Yeah, it’s important to realize that all code/types that RW generates is best-effort code that works in the most common scenarios. As you start doing more advanced things you’ll probably start having to modify and extend the generated code.

In this specific example the correct thing to do is to extend the type. You can do it inline like @callingmedic911 showed in the linked PR

CellSuccessProps<GoodPeopleQuery> & { notAVar: string }

Or you can create your own type and use that

interface SuccessProps extends CellSuccessProps<GoodPeopleQuery> {
  notAVar: string
}

export const Success = ({ people, notAVar }: SuccessProps) {
  //...
}
3 Likes