We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6a99e7 commit c3219deCopy full SHA for c3219de
packages/connect-react/src/hooks/form-context.tsx
@@ -129,13 +129,17 @@ export const FormContextProvider = <T extends ConfigurableProps>({
129
configuredProps,
130
dynamicPropsId: dynamicProps?.id,
131
};
132
- const queryKey = reloadPropIdx ? `dynamicProps:${reloadPropIdx}` : "dynamicProps"
+ const queryKeyInput = {
133
+ ...componentReloadPropsInput,
134
+ }
135
+
136
const {
137
isFetching: dynamicPropsQueryIsFetching,
138
// TODO error
139
} = useQuery({
140
queryKey: [
- queryKey
141
+ "dynamicProps",
142
+ queryKeyInput
143
],
144
queryFn: async () => {
145
const { dynamicProps } = await client.componentReloadProps(componentReloadPropsInput);
0 commit comments