25.06.2018 Views

Full-Stack Vue.js 2 and Laravel 5

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

changed consistently. But there is an additional benefit: we can easily log these<br />

changes for debugging. If you check the <strong>Vue</strong>x tab in <strong>Vue</strong> Devtools after clicking<br />

one of the save buttons, you will see an entry for that mutation:<br />

Figure 8.8: Mutation log Each entry in the log can tell you the state after the change was committed, as well<br />

as the particulars of the mutation.<br />

If you double-click a logged mutation, <strong>Vue</strong> Devtools will revert the<br />

state of the app to what it was directly after that change. This is<br />

called time-travel debugging <strong>and</strong> can be useful for fine-grained<br />

debugging.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!