From ec6c58175d34ab08c7720720e094647340e41a3a Mon Sep 17 00:00:00 2001 From: Prof Gra Date: Sun, 16 Jul 2017 14:33:47 +0200 Subject: [PATCH 1/3] Effects.md: about registration of builtin handlers --- docs/Effects.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Effects.md b/docs/Effects.md index 09173f4..1e48f10 100644 --- a/docs/Effects.md +++ b/docs/Effects.md @@ -289,7 +289,7 @@ In note form: 1. Event handlers should only return effect declaratively 2. They return a map like `{:effect1 value1 :effect2 value2}` 3. Keys of this map can refer to builtin effects handlers (see below) or custom ones -4. We use `reg-fx` to register our own effects handlers +4. We use `reg-fx` to register our own effects handlers, builtin ones are already registered ### Builtin Effect Handlers From 9e2c82c8d93f8995fc13dd86a1340aa04d7474b5 Mon Sep 17 00:00:00 2001 From: Prof Gra Date: Sun, 16 Jul 2017 21:18:09 +0200 Subject: [PATCH 2/3] Fix "you'll then you'll" typo --- docs/Basic-App-Structure.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Basic-App-Structure.md b/docs/Basic-App-Structure.md index a0c1380..f187ff2 100644 --- a/docs/Basic-App-Structure.md +++ b/docs/Basic-App-Structure.md @@ -30,7 +30,7 @@ namespaces. To the Google Closure dependency mechanism it appears as if these two namespaces are not needed and it doesn't load them. And, if the code does not get loaded, the registrations in these namespaces -never happen. You'll then you'll be puzzled as to why none of your events handlers +never happen. You'll then be puzzled as to why none of your events handlers are registered. Once you twig to what's going on, the solution is easy. You must From 6e5ef9cb6b9dca32c5650f8feed2083be01415ac Mon Sep 17 00:00:00 2001 From: Prof Gra Date: Sun, 16 Jul 2017 21:21:54 +0200 Subject: [PATCH 3/3] App structure: add core.cljs for multipanel apps --- docs/Basic-App-Structure.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/Basic-App-Structure.md b/docs/Basic-App-Structure.md index a0c1380..af62223 100644 --- a/docs/Basic-App-Structure.md +++ b/docs/Basic-App-Structure.md @@ -44,6 +44,7 @@ Assuming your larger apps have multiple "panels" (or "views") which are relatively independent, you might use this structure: ``` src +├── core.cljs <--- entry point, plus history, routing, etc ├── panel-1 │ ├── db.cljs <--- schema, validation, etc (data layer) │ ├── subs.cljs <--- subscription handlers (query layer)