diff --git a/docs/how-it-works.drawio b/docs/how-it-works.drawio new file mode 100644 index 0000000..6198ad9 --- /dev/null +++ b/docs/how-it-works.drawio @@ -0,0 +1,153 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/how-it-works.svg b/docs/how-it-works.svg new file mode 100644 index 0000000..5500d35 --- /dev/null +++ b/docs/how-it-works.svg @@ -0,0 +1 @@ +init()Sets reactive location.init()...<Router>Adds context.Links to parent.Defines reactive matching.<Router>...<Route>Retrieves context.Registers matching conditions.<Route>...ReactivityReactive matching evaluates routes as soon as they appear.Reactivity...<Route>Reactively shows or hides children.<Route>...Change of Reactive StateLocationRead state during route evaluationChange of Reactive State...ReactivityAll routers re-evaluate all routesReactivity...<Route>Reactively shows or hides children.<Route>...First RenderFirst RenderOperationOperationRoute EvaluationRoute EvaluationCalculate test pathCalculate test pathEvery route:Every route:Test path & extract paramsTest path & extract paramsYesYesNoNoPath Match?Path Match?YesYesNoNoand predicate?and predicate?Route Match!Route Match!Route MismatchRoute MismatchText is not SVG - cannot display \ No newline at end of file