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

Initial State of Async Call 'updating' set to true when using shouldUpdate() #103

Open
flintzPax8 opened this issue Sep 10, 2020 · 0 comments

Comments

@flintzPax8
Copy link

When using the shouldUpdate() function for my asyncComputed calls, the initial state of

asyncCOmputed.thingImFetching.updating = true, even if the shouldUpdate() function returns false.

Here's a code pen with an example: https://codepen.io/fredlintz5/pen/GRZxzbp

If I wrap the return statement with an if statement instead of using shouldUpdate() then asyncCOmputed.thingImFetching.updating = false as expected

This is an issue when Im trying to use a loader on the page, and I'm watching the updating status of my asyncComputed Calls.

VUE 2
Latest Version of asyncComputed.

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

No branches or pull requests

1 participant