Skip to content
This repository was archived by the owner on May 21, 2020. It is now read-only.
This repository was archived by the owner on May 21, 2020. It is now read-only.

[RFC] Improve loading state #274

Description

@lukeromanowicz

Current state:

all composables have only one loading state shared between all actions which makes it:

  1. hard to manage when there is series of actions to perform
  2. not too flexible when it comes to creating UI with different types of loading

Proposed change:

Change single loading property in composables to be a map of loading states for every action.

e.g.
in:

  return {
    ...
    availableLocales,
    availableCountries,
    availableCurrencies,
    loading: computed(() => loading.value)
  }

loading should become an object containing following bool properties: availableLocales, availableCountries, availableCurrencies.

Optional:
we could also add property: 'any' that would be true if any of sub-loading properties is true, otherwise false.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions