Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autoeffect seems to be randomly deciding not to work. #301

Open
kumardennis opened this issue Sep 2, 2021 · 1 comment
Open

Autoeffect seems to be randomly deciding not to work. #301

kumardennis opened this issue Sep 2, 2021 · 1 comment
Labels

Comments

@kumardennis
Copy link

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 kumardennis added the bug label Sep 2, 2021
@nitelite
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants