Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Promise Toast missing documented functionality #1683

Open
@HollaG

Description

Subject

Toast

Description

Currently, the only example given in the documentation doesn't show how to use the result of the resolved promise in the Toast.

image

However, looking in https://github.com/marek-sed/chakra-ui/blob/fec70fbab9a548d0644c8da6b8e629b9ccc62f87/packages/toast/test/use-toast.test.tsx#L95, it can be seen that there are callback functions that can be passed in success and error, and not just the options object.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions