message: refactor(toast): memoize toast returned by useToast
diff: @@ -116,7 +116,8 @@ const defaults = {
  export function useToast() {
  const theme = useTheme()
  - function toastImpl(options: UseToastOptions) {
  + return React.useMemo(() => {
  + const toastImpl = function (options: UseToastOptions) {
  const { render } = options
  const Message = (props: RenderProps) => (
  @@ -158,9 +159,11 @@ export function useToast() {
  ),
  })
  }
  +
  toastImpl.isActive = toast.isActive
  return toastImpl
  + }, [theme])
  }
  export default useToast
  