kriasoft / universal-router

A simple middleware-style router for isomorphic JavaScript web apps
https://www.kriasoft.com/universal-router/
MIT License
1.7k stars 104 forks source link

bad documentation in 'Getting Started' page #157

Closed NCarson closed 5 years ago

NCarson commented 5 years ago

This is the line from the two examples:

router.resolve({ pathname: '/one' }).then(component => {

-- but resolve takes a string not an object, which the other pages seem to agree on. Guessing this is from an older veresion. It gives out a very cryptic substring error, which took me quite a little bit to figure out the doc was wrong and it was not something I was doing.

NCarson commented 5 years ago

never mind. I had path instead of pathname in the object I was passing :/