Skip to content

feat: For useRealtimeRuns, allow to disambiguate an empty array from the initial loading state #1495

Description

@felix-quotez

Is your feature request related to a problem? Please describe.

I want to show a loading state in the UI while useRealtimeRuns loads the initial runs.

Currently, while loading, useRealtimeRuns simply returns an empty array that cannot be disambiguated from the initial loading state.

Describe the solution you'd like to see

This might be as simple as returning "isLoading" from "useSWR" in the implementation of "useRealtimeHooks".

Describe alternate solutions

No loading state gets show, bad UX.

Additional information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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