houdini icon indicating copy to clipboard operation
houdini copied to clipboard

Query variables function doesn't get props typings

Open SeppahBaws opened this issue 1 year ago • 3 comments

Describe the bug

image

Since components are no longer classes, usage of the ComponentProps has also changed slightly: image

The generation pipeline doesn't take this into account and simply generates the old way, even for svelte 5 components: image

Reproduction

No response

SeppahBaws avatar Nov 28 '24 11:11 SeppahBaws

Got the same issue. Hope the team will fix this soon.

chutuananh2k avatar Feb 12 '25 15:02 chutuananh2k

@SeppahBaws Do you have a workaround for this issue?

chutuananh2k avatar Feb 12 '25 15:02 chutuananh2k

@chutuananh2k You can work around it with this for now:

export const _MyQueryVariables: MyQueryVariables = ({ props }: { props: Props }) => {
  ...
};

SeppahBaws avatar Feb 12 '25 15:02 SeppahBaws