mzohaibqc / svelte-toasts

A highly configurable notification/toast component with individual toast state management capabilities.
https://mzohaibqc.github.io/svelte-toasts/
MIT License
42 stars 6 forks source link

`<ToastContainer>` was created with unknown prop #9

Open cescoallegrini opened 2 years ago

cescoallegrini commented 2 years ago

Every time I start my app I get several warnings of this kind:

<ToastContainer> was created with unknown prop 'subscribe'

Reported props are subscribe, add, success, info, error, warning, clearAll, clearLast, getById, setDefaults.

My setup is

__layout.svelte

<script lang="ts">
  import { FlatToast, toasts, ToastContainer } from "svelte-toasts"

  // etc
</script>

<!-- etc -->

<ToastContainer placement="bottom-right" {...toasts} let:data>
  <FlatToast {data} />
</ToastContainer>

Everything works properly but these warnings are kind of annoying, is there a way to at least hide them?