Skip to content

useToastOrchestrator show/hide issues #2687

@dwgray

Description

@dwgray

Describe the bug

I'm struggling to get my toasts to behave in 0.29.2, I'm guessing based on changes from #2425

When looking at the examples in the docs, which were modified in #2425, so I was hoping they'd be up-to-date, I find that the first example no longer hides the toast after 5 seconds as it did before. And nothing I do mucking with modelValue seems to help - it looks like its getting set to true down in BToast rather than the number that's getting passed in.

Another issue is that remove is no longer implemented, so the examples in Programmatically Hiding a Toast throw a remove is not a function error when attempting to hide the toast.

Note that my examples are against localhost, as it looks like the docs on the website aren't up-to-date.

@xvaara if you believe this is working as expected, just an issue of the documentation lagging, I'd be happy to update the docs. But I'd appreciate it if you could give me a brief description of how you expect show/hide and the use[Component] composables to work now, as that would save me a bunch of time trying to unpack that giant PR.

Reproduction

http://localhost:8000/bootstrap-vue-next/docs/composables/useToastController.html#programmatically-hiding-a-toast

Used Package Manager

pnpm

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions