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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy