question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Documentation lacks a good overview.

See original GitHub issue

I’m reading the documentation and it’s hard for me to understand where would router5 go in my app. In the simplest form, I understand the router as something that maps urls to states. But the introduction doesn’t talk about this. Let me quote the very first sentence:

The main idea behind router5 is to treat routes like any other application data / state.

Okay, cool, I expect a nice pure functional router. But then in another place I read that calling .start() will bind the router to the browser state. In my understanding, this contradicts the “main idea”!

Then I see:

With router5 it is reversed: rather than the router updating the view, it is up to the view to listen / bind / subscribe to route changes in order to update itself.

So I suppose that the router has some internal state, and I can push URLs and listen to state changes. Right?

I try to be constructive, and not just complain about the docs I didn’t write. But the introduction would really, really benefit from a “big picture” overview. This can be one paragraph, or an example with 10 lines of code, that would explain the Router5’s place within an app. (e.g. should my UI create a router, or will the router create my UI?)

Maybe I’ll even prepare one when I understand it better. 😉

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
trochcommented, Sep 20, 2016

@jwoudenberg API reference is available again

1reaction
trochcommented, Sep 6, 2016

I’m going to bring it back, I’ve ran out of time and went for releasing 4.0.0 anyway (and not delay it any further).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Poor Documentation: Why It Happens and How to Fix It
In general, Stewart says poor documentation is defined as that which is lacking clarity, specificity, or completeness, and is of overall poor quality....
Read more >
5 Tips for Improving Documentation | CloudApp Blog
Documentation is an often overlooked, but very important, aspect of business. Learn how to improve documentation at your company with these five simple ......
Read more >
Documentation and Data Improvement Fundamentals
Introduction. The absence of complete documentation in patient medical records can have a negative effect on statistical databases, financial planning, ...
Read more >
Nursing documentation: How to avoid the most common ...
Good and effective documentation is: Accurate; Factual; Complete; Timely; Organized; Compliant with health laws and facility standards. Academic EMRs benefit ...
Read more >
Importance of Documentation | Office of Inspector General
Good documentation promotes patient safety and quality of care. ... All of those factors are missing in this record.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found