I've declared an effect, something on the lines of:
createEffect(async ()=>{
let localvar = 0;
if(storeGetter.var1 && storeGetter.var2){
while(storeGetter.var3){
localvar = await storeGetter.someFunction1(storeSetter,storeGetter);
}
}
}
And then in store.someFunction I've declared:
someFunction: async function(setter,getter){
let localVar2 = 0;
let ans = 0;
if(getter.var_4){
/*do some calculations*/
}
return ans;
}
The thing is that when store_var4 is updated, the way solidjs resolves the reactivity is taking it into account as a dependency on the effect.
Is there any possibility of avoiding the triggering of the effect in this case?
I'm not sure if untrack is the way to go or how to use it in this case