Skip to content

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

@flintzPax8

Description

@flintzPax8

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions