mardi 19 octobre 2021

Does it break any design pattern if we edit injected data with "provide / inject" api of Vuejs?

Is editing the provided data in vuejs a bad practice? when

  • The goal is to simplify a big form page that handles a big data structure.
  • The main problem is deep props drilling.
  • Using the vuex or any other store is not a good solution for some reason.

The Idea is to provide data from the root component to all children and let them edit it directly.

Please check this sand box

Aucun commentaire:

Enregistrer un commentaire