react-easy-state icon indicating copy to clipboard operation
react-easy-state copied to clipboard

Autoeffect seems to be randomly deciding not to work.

Open kumardennis opened this issue 4 years ago • 1 comments

Below is the code for autoEffect.

 autoEffect(() => {
        const testvar = formStore.rowLinks;
        console.log(testvar);
      });

the component is wrapped in 'view'.

I try changing state from a different file and function:

formStore.rowLinks= containerPurchase;

But it just doesn't update when state changes.

kumardennis avatar Sep 02 '21 13:09 kumardennis

Does rowLinks exist when you read it in the autoEffect the first time, or is it undefined?

nitelite avatar Jun 29 '24 13:06 nitelite