Skip to content

conditional fetching with onSpringStart it make glitching issue or ropen twice the bottomsheet #267

Open
@wibawasuyadnya

Description

when !data && isLoading i have different element and it has Skeleton for Callback if my data is not fetched already
but when it finish fetching the bottomsheet close it self and reopen again with the fetched data.
does anyone know how to handle this ?
ps :
i already do anything async axios get inside the onSpringStart and now I still stick with my useSWR with fetcher async axios.get function and define function Promise and call them with await inside the onSpringStart but it still presist on first or initial load i click on bottomsheet it was open like I just say earlier with isLoading or the Callback but when it finish fetched it close and reopen again quickly and this is really annoy me sorry but thanks cool package though btw I just want the bottomsheet just still open even my data isn't fully fetched or waiting for fetch successed just like inside page normally

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