Vue provide inject usage scenarios?

vue provide inject usage scenarios?
it is already known that both extend,minxins, are quite useful, so under what circumstances is the provide/inject usage scenario used? I have seen what Zhihu said before and said that it implements the function of the type vuex. Provide/inject-related articles are also rare, and I don"t quite understand this use.

Mar.02,2021

can replace dispath,
can replace this.$parent.something


something that replaces overly nested props, and vuex-bus in the communication of elements of ancestors and descendants.
can be understood as an attribute of bus, but only as an one-way transmission notified by ancestors to descendants

Menu