antd-mobile 5.31.0 → 5.31.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20834,7 +20834,7 @@ const FormSubscribe = (props) => {
20834
20834
  const update2 = useUpdate$1();
20835
20835
  const form = React$4.useContext(Context$1);
20836
20836
  const value = form.getFieldsValue(props.to);
20837
- const childNode = React__default.default.useMemo(() => props.children(value, form), [JSON.stringify(value)]);
20837
+ const childNode = React__default.default.useMemo(() => props.children(value, form), [JSON.stringify(value), props.children]);
20838
20838
  return React__default.default.createElement(React__default.default.Fragment, null, childNode, props.to.map((namePath) => React__default.default.createElement(Watcher, {
20839
20839
  key: namePath.toString(),
20840
20840
  form,
@@ -25130,10 +25130,10 @@ const Swiper = React$4.forwardRef(staged_1((p, ref) => {
25130
25130
  var _a;
25131
25131
  const roundedIndex = Math.round(index2);
25132
25132
  const targetIndex = loop2 ? modulus(roundedIndex, count) : bound(roundedIndex, 0, count - 1);
25133
- setCurrent(targetIndex);
25134
25133
  if (targetIndex !== getCurrent()) {
25135
25134
  (_a = props.onIndexChange) === null || _a === void 0 ? void 0 : _a.call(props, targetIndex);
25136
25135
  }
25136
+ setCurrent(targetIndex);
25137
25137
  api.start({
25138
25138
  position: (loop2 ? roundedIndex : boundIndex(roundedIndex)) * 100,
25139
25139
  immediate