svelte-toasts icon indicating copy to clipboard operation
svelte-toasts copied to clipboard

`<ToastContainer>` was created with unknown prop

Open cescoallegrini opened this issue 2 years ago • 0 comments

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?

cescoallegrini avatar Jul 11 '22 15:07 cescoallegrini