Improve the Table of Contents in some docs
This commit is contained in:
parent
af1c492b58
commit
65ed3a2aa3
|
@ -125,5 +125,4 @@ Next: [First Code Walk-Through](CodeWalkthrough.md)
|
|||
|
||||
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
||||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
||||
|
||||
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
||||
|
|
|
@ -35,3 +35,9 @@ To the extent possible under law, the Day8 team has waived all copyright and rel
|
|||
[bundler]: http://bundler.io/conduct.html
|
||||
[jsconf]: http://jsconf.com/codeofconduct.html
|
||||
[contributor]: http://contributor-covenant.org/
|
||||
|
||||
|
||||
|
||||
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
||||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
||||
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
||||
|
|
|
@ -8,37 +8,6 @@ At this point, you are about 50% of the way to understanding re-frame. You have
|
|||
|
||||
In this tutorial, **we look at re-frame code**. By the end of it, you'll be at 70% knowledge, and ready to start coding.
|
||||
|
||||
|
||||
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
||||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
||||
## Table Of Contents
|
||||
|
||||
- [What Code?](#what-code)
|
||||
- [Namespace](#namespace)
|
||||
- [Data Schema](#data-schema)
|
||||
- [Events (domino 1)](#events-domino-1)
|
||||
- [dispatch](#dispatch)
|
||||
- [After dispatch](#after-dispatch)
|
||||
- [Event Handlers (domino 2)](#event-handlers-domino-2)
|
||||
- [Two ways To register](#two-ways-to-register)
|
||||
- [reg-event-db](#reg-event-db)
|
||||
- [:initialize](#initialize)
|
||||
- [:timer](#timer)
|
||||
- [:time-color-change](#time-color-change)
|
||||
- [Effect Handlers (domino 3)](#effect-handlers-domino-3)
|
||||
- [Subscription Handlers (domino 4)](#subscription-handlers-domino-4)
|
||||
- [reg-sub](#reg-sub)
|
||||
- [View Functions (domino 5)](#view-functions-domino-5)
|
||||
- [Hiccup](#hiccup)
|
||||
- [Subscribing](#subscribing)
|
||||
- [The View Functions](#the-view-functions)
|
||||
- [Components Like Templates?](#components-like-templates)
|
||||
- [Kick Starting The App](#kick-starting-the-app)
|
||||
- [Summary](#summary)
|
||||
- [Next Steps](#next-steps)
|
||||
|
||||
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
||||
|
||||
## What Code?
|
||||
|
||||
This repo contains an `/examples` application called ["simple"](https://github.com/Day8/re-frame/tree/develop/examples/simple),
|
||||
|
@ -518,3 +487,8 @@ Previous: [app-db (Application State)](ApplicationState.md) &n
|
|||
Up: [Index](README.md)
|
||||
Next: [Mental Model Omnibus](MentalModelOmnibus.md)
|
||||
|
||||
|
||||
|
||||
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
||||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
||||
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
||||
|
|
|
@ -6,18 +6,6 @@ Event handlers are quite central to a re-frame app. Only event handlers
|
|||
can update `app-db` to "step" an application "forward" from one state
|
||||
to the next.
|
||||
|
||||
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
||||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
||||
## Table Of Contents
|
||||
|
||||
- [The `debug` Interceptor](#the-debug-interceptor)
|
||||
- [Using `debug`](#using-debug)
|
||||
- [Too Much Repetition - Part 1](#too-much-repetition---part-1)
|
||||
- [3. Checking DB Integrity](#3-checking-db-integrity)
|
||||
- [Too Much Repetition - Part 2](#too-much-repetition---part-2)
|
||||
- [What about the -fx variation?](#what-about-the--fx-variation)
|
||||
|
||||
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
||||
|
||||
## The `debug` Interceptor
|
||||
|
||||
|
@ -229,3 +217,9 @@ was being changed).
|
|||
|
||||
Actually, it would probably be better to write an alternative `after` which XXX
|
||||
TODO: finish thought
|
||||
|
||||
|
||||
|
||||
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
||||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
||||
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
||||
|
|
|
@ -1,10 +1,3 @@
|
|||
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
||||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
||||
## Table Of Contents
|
||||
|
||||
- [Event Handling Infographics](#event-handling-infographics)
|
||||
|
||||
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
||||
|
||||
## Event Handling Infographics
|
||||
|
||||
|
@ -22,3 +15,8 @@ They should be reviewed in conjunction with the written tutorials.
|
|||
Previous: [Mental Model Omnibus](MentalModelOmnibus.md)
|
||||
Up: [Index](README.md)
|
||||
Next: [Effectful Handlers](EffectfulHandlers.md)
|
||||
|
||||
|
||||
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
||||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
||||
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
|
||||
|
||||
### Question
|
||||
|
||||
How can I detect exceptions in Event Handlers?
|
||||
|
|
|
@ -1,13 +1,3 @@
|
|||
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
||||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
||||
## Table Of Contents
|
||||
|
||||
- [Question](#question)
|
||||
- [Short Answer](#short-answer)
|
||||
- [Longer Answer](#longer-answer)
|
||||
|
||||
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
||||
|
||||
### Question
|
||||
|
||||
How do I access the value of a subscription from inside an event handler?
|
||||
|
@ -24,6 +14,10 @@ Operationally: you'll end up with a memory leak.
|
|||
### Longer Answer
|
||||
|
||||
|
||||
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
||||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
||||
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -18,5 +18,5 @@ Next: [Correcting a wrong](SubscriptionsCleanup.md) &nbs
|
|||
|
||||
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
||||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
||||
## Table Of Contents
|
||||
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
||||
|
||||
|
|
|
@ -1,16 +1,3 @@
|
|||
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
||||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
||||
## Table Of Contents
|
||||
|
||||
- [Talking To Servers](#talking-to-servers)
|
||||
- [Triggering The Request](#triggering-the-request)
|
||||
- [The Event Handler](#the-event-handler)
|
||||
- [Version 1](#version-1)
|
||||
- [Successful GET](#successful-get)
|
||||
- [Problems In Paradise?](#problems-in-paradise)
|
||||
- [Version 2](#version-2)
|
||||
|
||||
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
||||
|
||||
## Talking To Servers
|
||||
|
||||
|
@ -160,3 +147,9 @@ Notes:
|
|||
Previous: [Loading Initial Data](Loading-Initial-Data.md)
|
||||
Up: [Index](README.md)
|
||||
Next: [Subscribing to External Data](Subscribing-To-External-Data.md)
|
||||
|
||||
|
||||
|
||||
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
||||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
||||
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
||||
|
|
|
@ -13,20 +13,6 @@ thrill of that forbidden fruit.
|
|||
|
||||
I won't tell, if you don't. But careful plans must be made ...
|
||||
|
||||
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
||||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
||||
## Table Of Contents
|
||||
|
||||
- [The overall plan](#the-overall-plan)
|
||||
- [Example Using Google Maps](#example-using-google-maps)
|
||||
- [Pattern Discovery](#pattern-discovery)
|
||||
- [Code Credit](#code-credit)
|
||||
- [D3 Examples](#d3-examples)
|
||||
- [Advanced Lifecycle Methods](#advanced-lifecycle-methods)
|
||||
|
||||
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
||||
|
||||
|
||||
### The overall plan
|
||||
|
||||
To use a stateful js component, you'll need to write two Reagent components:
|
||||
|
@ -107,3 +93,9 @@ https://gadfly361.github.io/gadfly-blog/2016-10-22-d3-in-reagent.html
|
|||
|
||||
If you mess around with lifecycle methods, you'll probably want to read Martin's explanations:
|
||||
https://www.martinklepsch.org/posts/props-children-and-component-lifecycle-in-reagent.html
|
||||
|
||||
|
||||
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
||||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
||||
|
||||
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
||||
|
|
Loading…
Reference in New Issue