Article content is one step behind #1
Chargement…
Référencer dans un nouveau ticket
Sans contenu.
Supprimer la branche "%!s(<nil>)"
La suppression d’une branche est permanente. Bien qu’une branche supprimée puisse temporairement subsister, elle NE PEUT PAS être facilement restaurée. Continuer ?
#What's expected to happen
When clicking on "Edit" for an article, the meta AND content should be the ones fetched from the API.
#What happens
The article content in the
UserInput
component is the one from one step behind, suggesting that the Vuex state is not updated properly.Possible explanation : the component is mounted before the Vuex mutation.
Hence the following behavior :
EditPage
componentUserInputPage
component is loaded, with the unmutated stateSolution :
await
the mutation before callingrouter.push()