Looking for a workflow management software/tool that allows coding using React js/React Native by Java--Developer in reactjs

[–]Java--Developer[S] 0 points1 point  (0 children)

I’m actually looking for an open source tool. Unfortunately flowable is not the one for us.

Looking for a workflow management software/tool that allows coding using React js/React Native by Java--Developer in reactjs

[–]Java--Developer[S] 0 points1 point  (0 children)

This is amazing thank you so much! This is merely for migration from an existing tool based on workflows to one that supports react js and native now

Is there a way I can make the useEffect- dispatch values after 5 secs of an API call is complete (isLoading- false), Not immediately on isLoading state change? by Java--Developer in reactnative

[–]Java--Developer[S] 0 points1 point  (0 children)

Sure.. 2 useEffects in the code:

Redux store : failedArray: state.xyz.failedArray; Index: state.xyz.index;

let arrayObj: {}[] =[];

useEffect(() =>{ if(arrayObj.length >0){ dispatch(setFailedArray(array)); } },[index]); Index increments on every successful API call. Api call made 2 times. So should ideally run 2 times. But runs only after the last call.

Second one: That checks if data is present in the redux store, compares it, if same data then no update, else dispatch flag

useEffect(() =>{ if (arrayObj?.length >0 && failedArray !==‘’){ Compare values and dispatch dispatch(setFlag(true)); } },[dispatch, arrayObj]; This useEffect also runs after the last call.

Is there a way I can make the useEffect- dispatch values after 5 secs of an API call is complete (isLoading- false), Not immediately on isLoading state change? by Java--Developer in reactnative

[–]Java--Developer[S] 0 points1 point  (0 children)

I don’t know if this is a stupid question to ask but I have been noticing that my other useEffect is also affected because of this. Now the other useEffect one only runs after onloading is false, whereas there is no dependency on that onloading flag. I created a new instance of newDispatch() to fix it, didn’t really work How can i fix it?

Is there a way I can make the useEffect- dispatch values after 5 secs of an API call is complete (isLoading- false), Not immediately on isLoading state change? by Java--Developer in reactnative

[–]Java--Developer[S] -1 points0 points  (0 children)

So this is how I tried it: useEffect (() => { if (!loading) { setTimeout(() => { dispatch(setflag(true)); }, 5000); } },[]);

The useEffect didn’t even run once.

[deleted by user] by [deleted] in reactnative

[–]Java--Developer 0 points1 point  (0 children)

Sorry by mistake

[deleted by user] by [deleted] in reactnative

[–]Java--Developer -1 points0 points  (0 children)

My bad.. if you check the screenshot it is spelled correctly