But then the bsToast.show() or bsToast.hide() wouldn't trigger when the state of toast changes. In my case I only added [toast] to the useEffect dependencies.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
But then the
bsToast.show()
orbsToast.hide()
wouldn't trigger when the state oftoast
changes. In my case I only added[toast]
to the useEffect dependencies.