brilliant-orangeB
Refine2y ago
11 replies
brilliant-orange

How to calling refetch when I create action after?

export const PointsModal = ({ type, point_id, order_id, member_id }: PointsModalProps) => {
  const {
    register,
    setValue,
    formState: { errors },
    handleSubmit,
    reset,
    refineCore: { onFinish, refetch },
  } = useForm<IPointDetail, HttpError, Nullable<IPointDetail>>({
    refineCoreProps: {
      resource: 'point',
      action: 'create',
      redirect: 'list',
    },
  })
Was this page helpful?