useSelect issue - After build TypeError: Cannot read properties of undefined (reading 'isFetching')
I am using useSelect like so:
const { selectProps: categorySelectProps } = useSelect({
resource: "categories",
optionLabel: "title",
optionValue: "id",
});
<Form.Item
label={"Categories"}
name="categories"
rules={[
{
required: false,
},
]}
>
<Select mode="multiple" {...categorySelectProps} />
</Form.Item>
Form and Select are antd.
In dev, this is working well, but when built and deployed i get the following error:
TypeError: Cannot read properties of undefined (reading 'isFetching')
at useSelect (index-76c04c5b.js:726:31290)
Has anyone encountered this issue before? Any ideas on where I could next look to find a solution?
const { selectProps: categorySelectProps } = useSelect({
resource: "categories",
optionLabel: "title",
optionValue: "id",
});
<Form.Item
label={"Categories"}
name="categories"
rules={[
{
required: false,
},
]}
>
<Select mode="multiple" {...categorySelectProps} />
</Form.Item>
Form and Select are antd.
In dev, this is working well, but when built and deployed i get the following error:
TypeError: Cannot read properties of undefined (reading 'isFetching')
at useSelect (index-76c04c5b.js:726:31290)
Has anyone encountered this issue before? Any ideas on where I could next look to find a solution?
