Skip to content

Add pending to query functions #14900

@vladshcherbin

Description

@vladshcherbin

Describe the problem

Similar to #14080 but for query functions.

Would be nice to have pending state of a query in script while it's resolved somewhere deep in the template.

Describe the proposed solution

<script lang="ts">
  import { getTags } from '$lib/remote/get-tags.remote.ts'

  const buttonDisabled = $derived(getTags.pending)
</script>

Alternatives considered

No response

Importance

would make my life easier

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions