From a7bac00619fe5d3ad7a6dbda796ac89a39a170ad Mon Sep 17 00:00:00 2001 From: "richardcrng@gmail.com" Date: Thu, 7 Nov 2019 17:13:47 +0000 Subject: [PATCH 1/2] Add line breaks to docs --- docs/examples/basicExample.md | 2 ++ docs/examples/intermediateExample.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docs/examples/basicExample.md b/docs/examples/basicExample.md index f2f713b3..47d64e80 100644 --- a/docs/examples/basicExample.md +++ b/docs/examples/basicExample.md @@ -8,7 +8,9 @@ sidebar_label: Basic example # Basic example: 30 second demo **Situation**: I want to be able to increment two different counters in Redux state, `counterOne` and `counterTwo`. + **Complication**: I want to do this as quickly, painlessly and intuitively as possible. + **Question**: Do I really have to define reducers, action types and creators to do this? Answer: no! Just provide Redux-Leaves with your state shape, i.e. the two counters, and it'll do the rest for you! diff --git a/docs/examples/intermediateExample.md b/docs/examples/intermediateExample.md index dc0c7290..f7735c30 100644 --- a/docs/examples/intermediateExample.md +++ b/docs/examples/intermediateExample.md @@ -8,7 +8,9 @@ sidebar_label: Intermediate example # Intermediate example: custom logic **Situation**: I want to define a general type of reducer logic that can be reused on any arbitrary slice of state. + **Complication**: I want to do this as quickly, painlessly and intuitively as possible. + **Question**: Do I really have to create sub-reducers with the same underlying logic? Answer: no! Just provide Redux-Leaves once with your custom reducer logic, and you can automatically use it at any leaf of your state tree. From 043f5f0bbe6df4726de1f2cd132f3335aa502989 Mon Sep 17 00:00:00 2001 From: "richardcrng@gmail.com" Date: Thu, 7 Nov 2019 17:17:24 +0000 Subject: [PATCH 2/2] Fix sidebar ids --- website/sidebars.json | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/website/sidebars.json b/website/sidebars.json index ba3d1518..2b297389 100644 --- a/website/sidebars.json +++ b/website/sidebars.json @@ -22,52 +22,52 @@ "type": "subcategory", "label": "any", "ids": [ - "create/apply", - "create/clear", - "create/reset", - "create/update" + "defaults/apply", + "defaults/clear", + "defaults/reset", + "defaults/update" ] }, { "type": "subcategory", "label": "array", "ids": [ - "create/concat", - "create/drop", - "create/filter", - "create/push" + "defaults/concat", + "defaults/drop", + "defaults/filter", + "defaults/push" ] }, { "type": "subcategory", "label": "boolean", "ids": [ - "create/off", - "create/on", - "create/toggle" + "defaults/off", + "defaults/on", + "defaults/toggle" ] }, { "type": "subcategory", "label": "number", "ids": [ - "create/increment" + "defaults/increment" ] }, { "type": "subcategory", "label": "object", "ids": [ - "create/assign", - "create/path", - "create/set" + "defaults/assign", + "defaults/path", + "defaults/set" ] }, { "type": "subcategory", "label": "string", "ids": [ - "create/concat" + "defaults/concat" ] } ]