react-easy-state
react-easy-state copied to clipboard
Autoeffect seems to be randomly deciding not to work.
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.
Does rowLinks exist when you read it in the autoEffect the first time, or is it undefined?