Skip to content
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 opened this issue Dec 22, 2023 · 0 comments
Open

Promise Toast missing documented functionality #1683

HollaG opened this issue Dec 22, 2023 · 0 comments

Comments

@HollaG
Copy link

HollaG commented Dec 22, 2023

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant