@credithub/harlan-components 1.61.4 → 1.61.5

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.
@@ -23,6 +23,12 @@ var ProcessosJuridicos = function (_a) {
23
23
  // Use a ref instead of state to track whether data has been processed
24
24
  var processedRef = useRef(false);
25
25
  var ctxHashRef = useRef('');
26
+ useEffect(function () {
27
+ if (ctx.type === RequestStatus.Loading) {
28
+ processedRef.current = false;
29
+ setData(function (prevState) { return (__assign(__assign({}, prevState), { processosJuridicosData: __assign(__assign({}, prevState.processosJuridicosData), { isLoaded: false }) })); });
30
+ }
31
+ }, [ctx.type, setData]);
26
32
  useEffect(function () {
27
33
  var _a;
28
34
  // Create a hash of the current context state to detect changes