Skip to content

braid-design-system@28.2.0

Choose a tag to compare

@seek-oss-ci seek-oss-ci released this 24 Jun 02:03
· 1284 commits to master since this release
660dc73

Minor Changes

  • useToast: Add deduplication of toasts (#662)

    Passing key when creating new toasts will now remove existing Toasts on screen with the same key before adding the new Toast. This is useful when a toast is created as part of a repeatable process that happens frequently.

    const showToast = useToast();
    
    showToast({
      message: 'There can only be one of me',
      tone: 'positive',
      key: 'deduped',
    });