pollination-react-io 1.95.1 → 1.95.2

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.
package/build/index.js CHANGED
@@ -47290,6 +47290,15 @@ var RecipeForm = function (_a) {
47290
47290
  });
47291
47291
  return data;
47292
47292
  }, [recipe, handlers, triggers, controlledValues]);
47293
+ React.useEffect(function () {
47294
+ // Refresh input if controlled value changes
47295
+ if (!controlledValues)
47296
+ return;
47297
+ var names = Object.keys(controlledValues);
47298
+ inputs.forEach(function (_) {
47299
+ names.includes(_.name) && handleReset(_);
47300
+ });
47301
+ }, [inputs]);
47293
47302
  /**
47294
47303
  * LOCAL ONLY - Create a copy of the recipe and remove alias
47295
47304
  */