8000 Rename useToast to useToastController · Issue #2155 · bootstrap-vue-next/bootstrap-vue-next · GitHub
[go: up one dir, main page]

Skip to content
Rename useToast to useToastController #2155
Closed
@dword-design-honestly

Description

@dword-design-honestly

Clear and concise description of the problem

When using the useToast composable, there is a bit of a naming conflict between the entity managing the toasts and the actual toast. So when I'm writing const toast = useToast(), it looks like a toast but it is actually the toast controller. Also, the naming is inconsistent with useModalController.

Suggested solution

I think useToastController is more consistent because useToast doesn't actually return a toast but a controller that manages the toasts, similar to useModalController.

Validations

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0