The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

Serhii (1) [Avatar] Offline
There's a mistake on this listing:

Please note that `router.push()` has onComplete and onError callbacks which you have to wait to before trying to reach a current route and run `getMatchedComponents()` method. Until it is resolved, getMatchedComponents() will be empty.

To make it simpler for me, I use `promisedPush` function:

function promisedPush(router, location) {
  return new Promise((resolve, reject) => router.push(location, resolve, reject));

so that I can utilize it like this:
it('/login route corresponds to PageLogin', async () => {
  await promisedPush(router, '/login');

I think it should be corrected.

P.S Additionally, GitHub repo is out of sync with what you explaining in the book (or unclear how to use this repo, which branch to checkout to)

Thanks for the book anyways!
Edd Yerburgh (42) [Avatar] Offline
Thanks for the report. I'm actually dropping this section from the final book, because it involves using vue router internals and I don't believe it's an effective way of testing.

re: the code being out of sync. You can start each new chapter with the corresponding branch. So if you start chapter 8, you should use the chapter-8 branch of the gitHub repo—
562568 (1) [Avatar] Offline
Thank you! Any idea when the next book version will be published?
Edd Yerburgh (42) [Avatar] Offline
The next meap update should be by mid July