Open HollaG opened 9 months ago
Toast
Currently, the only example given in the documentation doesn't show how to use the result of the resolved promise in the Toast.
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.
success
error
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.
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
anderror
, and not just the options object.