Skip to content

Can it work with React's <Suspense> and TanStack Query useSuspenseQuery? #82

@udohjeremiah

Description

@udohjeremiah

Great work @0xGF. Thank you so much for this ❤️❤️❤️

Is there a way to get this to work with React's <Suspense> and TanStack Query useSuspenseQuery, where there's no loading state and the only way to display a skeleton is <Suspense fallback={<Skeleton />}...</Suspense>?

I've been thinking of a way around this, but seems like I would have to either change my architecture or manually write fixture prop for all <Skeleton /> and pass that to fallback, which defeats the whole purpose of auto-generating skeletons.

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