From efc42e8bf17dc263ce899bd3ac1e745735e1cb39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20O=E2=80=99Shannessy?= Date: Wed, 13 Aug 2014 11:26:04 -0700 Subject: [PATCH] Default to layout: post for posts Just a little less boilerplate. This also removes a bit of trailing whitespace because it shouldn't have been there. --- _config.yml | 6 ++++++ _posts/2013-06-02-jsfiddle-integration.md | 1 - _posts/2013-06-05-why-react.md | 1 - _posts/2013-06-12-community-roundup.md | 1 - _posts/2013-06-19-community-roundup-2.md | 1 - _posts/2013-06-21-react-v0-3-3.md | 1 - _posts/2013-06-27-community-roundup-3.md | 1 - _posts/2013-07-02-react-v0-4-autobind-by-default.md | 1 - _posts/2013-07-03-community-roundup-4.md | 1 - ...-07-11-react-v0-4-prop-validation-and-default-values.md | 1 - _posts/2013-07-17-react-v0-4-0.md | 1 - _posts/2013-07-23-community-roundup-5.md | 1 - _posts/2013-07-26-react-v0-4-1.md | 1 - _posts/2013-07-30-use-react-and-jsx-in-ruby-on-rails.md | 1 - _posts/2013-08-05-community-roundup-6.md | 3 +-- .../2013-08-19-use-react-and-jsx-in-python-applications.md | 1 - _posts/2013-08-26-community-roundup-7.md | 1 - _posts/2013-09-24-community-roundup-8.md | 1 - _posts/2013-10-16-react-v0.5.0.md | 1 - _posts/2013-10-29-react-v0-5-1.md | 1 - _posts/2013-10-3-community-roundup-9.md | 1 - _posts/2013-11-05-thinking-in-react.md | 1 - _posts/2013-11-06-community-roundup-10.md | 1 - _posts/2013-11-18-community-roundup-11.md | 3 +-- _posts/2013-12-18-react-v0.5.2-v0.4.2.md | 1 - _posts/2013-12-19-react-v0.8.0.md | 1 - _posts/2013-12-23-community-roundup-12.md | 1 - _posts/2013-12-30-community-roundup-13.md | 1 - _posts/2014-01-02-react-chrome-developer-tools.md | 1 - _posts/2014-01-06-community-roundup-14.md | 1 - _posts/2014-02-05-community-roundup-15.md | 1 - _posts/2014-02-15-community-roundup-16.md | 1 - _posts/2014-02-16-react-v0.9-rc1.md | 1 - _posts/2014-02-20-react-v0.9.md | 1 - _posts/2014-02-24-community-roundup-17.md | 1 - _posts/2014-03-14-community-roundup-18.md | 1 - _posts/2014-03-19-react-v0.10-rc1.md | 1 - _posts/2014-03-21-react-v0.10.md | 1 - _posts/2014-03-28-the-road-to-1.0.md | 1 - _posts/2014-04-04-reactnet.md | 1 - _posts/2014-05-06-flux.md | 1 - _posts/2014-05-29-one-year-of-open-source-react.md | 1 - _posts/2014-06-27-community-roundup-19.md | 1 - _posts/2014-07-13-react-v0.11-rc1.md | 1 - _posts/2014-07-17-react-v0.11.md | 1 - _posts/2014-07-25-react-v0.11.1.md | 1 - _posts/2014-07-28-community-roundup-20.md | 7 +++---- _posts/2014-07-30-flux-actions-and-the-dispatcher.md | 3 +-- _posts/2014-08-03-community-roundup-21.md | 1 - 49 files changed, 12 insertions(+), 54 deletions(-) diff --git a/_config.yml b/_config.yml index e6bf45c8..56cc1b31 100644 --- a/_config.yml +++ b/_config.yml @@ -9,6 +9,12 @@ relative_permalinks: true paginate: 5 timezone: America/Los_Angeles highlighter: pygments +defaults: +- scope: + path: '' + type: post + values: + layout: post exclude: - Gemfile - Gemfile.lock diff --git a/_posts/2013-06-02-jsfiddle-integration.md b/_posts/2013-06-02-jsfiddle-integration.md index 3dbb0547..51b678d0 100644 --- a/_posts/2013-06-02-jsfiddle-integration.md +++ b/_posts/2013-06-02-jsfiddle-integration.md @@ -1,6 +1,5 @@ --- title: JSFiddle Integration -layout: post author: Christopher Chedeau --- diff --git a/_posts/2013-06-05-why-react.md b/_posts/2013-06-05-why-react.md index 07f02e1e..a459388c 100644 --- a/_posts/2013-06-05-why-react.md +++ b/_posts/2013-06-05-why-react.md @@ -1,6 +1,5 @@ --- title: Why did we build React? -layout: post author: Pete Hunt --- diff --git a/_posts/2013-06-12-community-roundup.md b/_posts/2013-06-12-community-roundup.md index d37e3b13..0fea125a 100644 --- a/_posts/2013-06-12-community-roundup.md +++ b/_posts/2013-06-12-community-roundup.md @@ -1,6 +1,5 @@ --- title: "Community Round-up #1" -layout: post author: Vjeux --- diff --git a/_posts/2013-06-19-community-roundup-2.md b/_posts/2013-06-19-community-roundup-2.md index 57b322e1..d04dc507 100644 --- a/_posts/2013-06-19-community-roundup-2.md +++ b/_posts/2013-06-19-community-roundup-2.md @@ -1,6 +1,5 @@ --- title: "Community Round-up #2" -layout: post author: Vjeux --- diff --git a/_posts/2013-06-21-react-v0-3-3.md b/_posts/2013-06-21-react-v0-3-3.md index 668c83de..129ed7f8 100644 --- a/_posts/2013-06-21-react-v0-3-3.md +++ b/_posts/2013-06-21-react-v0-3-3.md @@ -1,6 +1,5 @@ --- title: "React v0.3.3" -layout: post author: Paul O'Shannessy --- diff --git a/_posts/2013-06-27-community-roundup-3.md b/_posts/2013-06-27-community-roundup-3.md index 7ee8a331..91b35b6b 100644 --- a/_posts/2013-06-27-community-roundup-3.md +++ b/_posts/2013-06-27-community-roundup-3.md @@ -1,6 +1,5 @@ --- title: "Community Round-up #3" -layout: post author: Vjeux --- diff --git a/_posts/2013-07-02-react-v0-4-autobind-by-default.md b/_posts/2013-07-02-react-v0-4-autobind-by-default.md index 9a5735f7..29e00b83 100644 --- a/_posts/2013-07-02-react-v0-4-autobind-by-default.md +++ b/_posts/2013-07-02-react-v0-4-autobind-by-default.md @@ -1,6 +1,5 @@ --- title: "New in React v0.4: Autobind by Default" -layout: post author: Paul O'Shannessy --- diff --git a/_posts/2013-07-03-community-roundup-4.md b/_posts/2013-07-03-community-roundup-4.md index 62e56c56..dd78baac 100644 --- a/_posts/2013-07-03-community-roundup-4.md +++ b/_posts/2013-07-03-community-roundup-4.md @@ -1,6 +1,5 @@ --- title: "Community Round-up #4" -layout: post author: Vjeux --- diff --git a/_posts/2013-07-11-react-v0-4-prop-validation-and-default-values.md b/_posts/2013-07-11-react-v0-4-prop-validation-and-default-values.md index b2898fd3..5e1b191b 100644 --- a/_posts/2013-07-11-react-v0-4-prop-validation-and-default-values.md +++ b/_posts/2013-07-11-react-v0-4-prop-validation-and-default-values.md @@ -1,6 +1,5 @@ --- title: "New in React v0.4: Prop Validation and Default Values" -layout: post author: Paul O'Shannessy --- diff --git a/_posts/2013-07-17-react-v0-4-0.md b/_posts/2013-07-17-react-v0-4-0.md index b2a11fcd..a42b5e55 100644 --- a/_posts/2013-07-17-react-v0-4-0.md +++ b/_posts/2013-07-17-react-v0-4-0.md @@ -1,6 +1,5 @@ --- title: "React v0.4.0" -layout: post author: Paul O'Shannessy --- diff --git a/_posts/2013-07-23-community-roundup-5.md b/_posts/2013-07-23-community-roundup-5.md index 87aa8338..ff39aa06 100644 --- a/_posts/2013-07-23-community-roundup-5.md +++ b/_posts/2013-07-23-community-roundup-5.md @@ -1,6 +1,5 @@ --- title: "Community Round-up #5" -layout: post author: Vjeux --- diff --git a/_posts/2013-07-26-react-v0-4-1.md b/_posts/2013-07-26-react-v0-4-1.md index 7111e0e8..96c68c33 100644 --- a/_posts/2013-07-26-react-v0-4-1.md +++ b/_posts/2013-07-26-react-v0-4-1.md @@ -1,6 +1,5 @@ --- title: "React v0.4.1" -layout: post author: Paul O'Shannessy --- diff --git a/_posts/2013-07-30-use-react-and-jsx-in-ruby-on-rails.md b/_posts/2013-07-30-use-react-and-jsx-in-ruby-on-rails.md index 608da381..c8ccc4a6 100644 --- a/_posts/2013-07-30-use-react-and-jsx-in-ruby-on-rails.md +++ b/_posts/2013-07-30-use-react-and-jsx-in-ruby-on-rails.md @@ -1,6 +1,5 @@ --- title: "Use React and JSX in Ruby on Rails" -layout: post author: Paul O'Shannessy --- diff --git a/_posts/2013-08-05-community-roundup-6.md b/_posts/2013-08-05-community-roundup-6.md index a038136b..9dec9e03 100644 --- a/_posts/2013-08-05-community-roundup-6.md +++ b/_posts/2013-08-05-community-roundup-6.md @@ -1,6 +1,5 @@ --- title: "Community Round-up #6" -layout: post author: Vjeux --- @@ -58,7 +57,7 @@ este.demos.react.todoApp = este.react.create (`/** @lends {React.ReactComponent. [Zaim Bakar](http://zaim.github.io/) shared his boilerplate to get started with Stylus CSS processor. > This is my boilerplate React project using Grunt as the build tool, and Stylus as my CSS preprocessor. -> +> > - Very minimal HTML boilerplate > - Uses Stylus, with nib included > - Uses two build targets: diff --git a/_posts/2013-08-19-use-react-and-jsx-in-python-applications.md b/_posts/2013-08-19-use-react-and-jsx-in-python-applications.md index 8dd9ac6f..825ecaf4 100644 --- a/_posts/2013-08-19-use-react-and-jsx-in-python-applications.md +++ b/_posts/2013-08-19-use-react-and-jsx-in-python-applications.md @@ -1,6 +1,5 @@ --- title: "Use React and JSX in Python Applications" -layout: post author: Kunal Mehta --- diff --git a/_posts/2013-08-26-community-roundup-7.md b/_posts/2013-08-26-community-roundup-7.md index b75b02c2..86d2ca26 100644 --- a/_posts/2013-08-26-community-roundup-7.md +++ b/_posts/2013-08-26-community-roundup-7.md @@ -1,6 +1,5 @@ --- title: "Community Round-up #7" -layout: post author: Vjeux --- diff --git a/_posts/2013-09-24-community-roundup-8.md b/_posts/2013-09-24-community-roundup-8.md index eb7c52f7..b0df78b3 100644 --- a/_posts/2013-09-24-community-roundup-8.md +++ b/_posts/2013-09-24-community-roundup-8.md @@ -1,6 +1,5 @@ --- title: "Community Round-up #8" -layout: post author: Vjeux --- diff --git a/_posts/2013-10-16-react-v0.5.0.md b/_posts/2013-10-16-react-v0.5.0.md index aab495f1..cf327b02 100644 --- a/_posts/2013-10-16-react-v0.5.0.md +++ b/_posts/2013-10-16-react-v0.5.0.md @@ -1,6 +1,5 @@ --- title: "React v0.5" -layout: post author: Paul O'Shannessy --- diff --git a/_posts/2013-10-29-react-v0-5-1.md b/_posts/2013-10-29-react-v0-5-1.md index dcc8a2e3..672870b8 100644 --- a/_posts/2013-10-29-react-v0-5-1.md +++ b/_posts/2013-10-29-react-v0-5-1.md @@ -1,6 +1,5 @@ --- title: "React v0.5.1" -layout: post author: Paul O'Shannessy --- diff --git a/_posts/2013-10-3-community-roundup-9.md b/_posts/2013-10-3-community-roundup-9.md index 46accfa6..888d984a 100644 --- a/_posts/2013-10-3-community-roundup-9.md +++ b/_posts/2013-10-3-community-roundup-9.md @@ -1,6 +1,5 @@ --- title: "Community Round-up #9" -layout: post author: Vjeux --- diff --git a/_posts/2013-11-05-thinking-in-react.md b/_posts/2013-11-05-thinking-in-react.md index aa2fb4b4..f00aaa30 100644 --- a/_posts/2013-11-05-thinking-in-react.md +++ b/_posts/2013-11-05-thinking-in-react.md @@ -1,6 +1,5 @@ --- title: "Thinking in React" -layout: post author: Pete Hunt --- diff --git a/_posts/2013-11-06-community-roundup-10.md b/_posts/2013-11-06-community-roundup-10.md index fa83a474..f423fa81 100644 --- a/_posts/2013-11-06-community-roundup-10.md +++ b/_posts/2013-11-06-community-roundup-10.md @@ -1,6 +1,5 @@ --- title: "Community Round-up #10" -layout: post author: Vjeux --- diff --git a/_posts/2013-11-18-community-roundup-11.md b/_posts/2013-11-18-community-roundup-11.md index b7779b3b..0256e323 100644 --- a/_posts/2013-11-18-community-roundup-11.md +++ b/_posts/2013-11-18-community-roundup-11.md @@ -1,6 +1,5 @@ --- title: "Community Round-up #11" -layout: post author: Vjeux --- @@ -89,4 +88,4 @@ This round-up is the proof that React has taken off from its Facebook's root: it ## Random Tweet -
\ No newline at end of file +
diff --git a/_posts/2013-12-18-react-v0.5.2-v0.4.2.md b/_posts/2013-12-18-react-v0.5.2-v0.4.2.md index f59462f2..3c0105dc 100644 --- a/_posts/2013-12-18-react-v0.5.2-v0.4.2.md +++ b/_posts/2013-12-18-react-v0.5.2-v0.4.2.md @@ -1,6 +1,5 @@ --- title: "React v0.5.2, v0.4.2" -layout: post author: Paul O'Shannessy --- diff --git a/_posts/2013-12-19-react-v0.8.0.md b/_posts/2013-12-19-react-v0.8.0.md index 7c32d1de..c7a6fe63 100644 --- a/_posts/2013-12-19-react-v0.8.0.md +++ b/_posts/2013-12-19-react-v0.8.0.md @@ -1,6 +1,5 @@ --- title: "React v0.8" -layout: post author: Paul O'Shannessy --- diff --git a/_posts/2013-12-23-community-roundup-12.md b/_posts/2013-12-23-community-roundup-12.md index 4710cb94..7def798c 100644 --- a/_posts/2013-12-23-community-roundup-12.md +++ b/_posts/2013-12-23-community-roundup-12.md @@ -1,6 +1,5 @@ --- title: "Community Round-up #12" -layout: post author: Vjeux --- diff --git a/_posts/2013-12-30-community-roundup-13.md b/_posts/2013-12-30-community-roundup-13.md index 21197470..d647edc1 100644 --- a/_posts/2013-12-30-community-roundup-13.md +++ b/_posts/2013-12-30-community-roundup-13.md @@ -1,6 +1,5 @@ --- title: "Community Round-up #13" -layout: post author: Vjeux --- diff --git a/_posts/2014-01-02-react-chrome-developer-tools.md b/_posts/2014-01-02-react-chrome-developer-tools.md index 69265f5d..b395fa66 100644 --- a/_posts/2014-01-02-react-chrome-developer-tools.md +++ b/_posts/2014-01-02-react-chrome-developer-tools.md @@ -1,6 +1,5 @@ --- title: "React Chrome Developer Tools" -layout: post author: Sebastian Markbåge --- diff --git a/_posts/2014-01-06-community-roundup-14.md b/_posts/2014-01-06-community-roundup-14.md index d440daea..a42c645c 100644 --- a/_posts/2014-01-06-community-roundup-14.md +++ b/_posts/2014-01-06-community-roundup-14.md @@ -1,6 +1,5 @@ --- title: "Community Round-up #14" -layout: post author: Vjeux --- diff --git a/_posts/2014-02-05-community-roundup-15.md b/_posts/2014-02-05-community-roundup-15.md index 8e0d4a16..30bc07a8 100644 --- a/_posts/2014-02-05-community-roundup-15.md +++ b/_posts/2014-02-05-community-roundup-15.md @@ -1,6 +1,5 @@ --- title: "Community Round-up #15" -layout: post author: Jonas Gebhardt --- diff --git a/_posts/2014-02-15-community-roundup-16.md b/_posts/2014-02-15-community-roundup-16.md index 02ec66cc..8486e8e8 100644 --- a/_posts/2014-02-15-community-roundup-16.md +++ b/_posts/2014-02-15-community-roundup-16.md @@ -1,6 +1,5 @@ --- title: "Community Round-up #16" -layout: post author: Jonas Gebhardt --- diff --git a/_posts/2014-02-16-react-v0.9-rc1.md b/_posts/2014-02-16-react-v0.9-rc1.md index bee75e5f..6e7588bc 100644 --- a/_posts/2014-02-16-react-v0.9-rc1.md +++ b/_posts/2014-02-16-react-v0.9-rc1.md @@ -1,6 +1,5 @@ --- title: React v0.9 RC -layout: post author: Ben Alpert --- diff --git a/_posts/2014-02-20-react-v0.9.md b/_posts/2014-02-20-react-v0.9.md index 95c6aa9e..f44cab8d 100644 --- a/_posts/2014-02-20-react-v0.9.md +++ b/_posts/2014-02-20-react-v0.9.md @@ -1,6 +1,5 @@ --- title: React v0.9 -layout: post author: Ben Alpert --- diff --git a/_posts/2014-02-24-community-roundup-17.md b/_posts/2014-02-24-community-roundup-17.md index ec2d98f8..4d7aae92 100644 --- a/_posts/2014-02-24-community-roundup-17.md +++ b/_posts/2014-02-24-community-roundup-17.md @@ -1,6 +1,5 @@ --- title: "Community Round-up #17" -layout: post author: Jonas Gebhardt --- diff --git a/_posts/2014-03-14-community-roundup-18.md b/_posts/2014-03-14-community-roundup-18.md index 275c8fc3..080537bf 100644 --- a/_posts/2014-03-14-community-roundup-18.md +++ b/_posts/2014-03-14-community-roundup-18.md @@ -1,6 +1,5 @@ --- title: "Community Round-up #18" -layout: post author: Jonas Gebhardt --- diff --git a/_posts/2014-03-19-react-v0.10-rc1.md b/_posts/2014-03-19-react-v0.10-rc1.md index 92cd75eb..d55380d4 100644 --- a/_posts/2014-03-19-react-v0.10-rc1.md +++ b/_posts/2014-03-19-react-v0.10-rc1.md @@ -1,6 +1,5 @@ --- title: React v0.10 RC -layout: post author: Paul O’Shannessy --- diff --git a/_posts/2014-03-21-react-v0.10.md b/_posts/2014-03-21-react-v0.10.md index 0bcda627..fe816591 100644 --- a/_posts/2014-03-21-react-v0.10.md +++ b/_posts/2014-03-21-react-v0.10.md @@ -1,6 +1,5 @@ --- title: React v0.10 -layout: post author: Paul O’Shannessy --- diff --git a/_posts/2014-03-28-the-road-to-1.0.md b/_posts/2014-03-28-the-road-to-1.0.md index bf21a765..341506ad 100644 --- a/_posts/2014-03-28-the-road-to-1.0.md +++ b/_posts/2014-03-28-the-road-to-1.0.md @@ -1,6 +1,5 @@ --- title: The Road to 1.0 -layout: post author: Paul O'Shannessy --- diff --git a/_posts/2014-04-04-reactnet.md b/_posts/2014-04-04-reactnet.md index 84f252c3..9aa4efe3 100644 --- a/_posts/2014-04-04-reactnet.md +++ b/_posts/2014-04-04-reactnet.md @@ -1,6 +1,5 @@ --- title: "Use React and JSX in ASP.NET MVC" -layout: post author: Daniel Lo Nigro --- diff --git a/_posts/2014-05-06-flux.md b/_posts/2014-05-06-flux.md index 688c5c45..afa6a6f4 100644 --- a/_posts/2014-05-06-flux.md +++ b/_posts/2014-05-06-flux.md @@ -1,6 +1,5 @@ --- title: "Flux: An Application Architecture for React" -layout: post author: Bill Fisher and Jing Chen --- diff --git a/_posts/2014-05-29-one-year-of-open-source-react.md b/_posts/2014-05-29-one-year-of-open-source-react.md index 3447da00..7d44e1eb 100644 --- a/_posts/2014-05-29-one-year-of-open-source-react.md +++ b/_posts/2014-05-29-one-year-of-open-source-react.md @@ -1,6 +1,5 @@ --- title: "One Year of Open-Source React" -layout: post author: Cheng Lou --- diff --git a/_posts/2014-06-27-community-roundup-19.md b/_posts/2014-06-27-community-roundup-19.md index 165a72cd..f50b7cc5 100644 --- a/_posts/2014-06-27-community-roundup-19.md +++ b/_posts/2014-06-27-community-roundup-19.md @@ -1,6 +1,5 @@ --- title: "Community Round-up #19" -layout: post author: Cheng Lou --- diff --git a/_posts/2014-07-13-react-v0.11-rc1.md b/_posts/2014-07-13-react-v0.11-rc1.md index 17417196..cc1b4567 100644 --- a/_posts/2014-07-13-react-v0.11-rc1.md +++ b/_posts/2014-07-13-react-v0.11-rc1.md @@ -1,6 +1,5 @@ --- title: React v0.11 RC -layout: post author: Paul O’Shannessy --- diff --git a/_posts/2014-07-17-react-v0.11.md b/_posts/2014-07-17-react-v0.11.md index 10e305c7..ced68742 100644 --- a/_posts/2014-07-17-react-v0.11.md +++ b/_posts/2014-07-17-react-v0.11.md @@ -1,6 +1,5 @@ --- title: React v0.11 -layout: post author: Paul O’Shannessy --- diff --git a/_posts/2014-07-25-react-v0.11.1.md b/_posts/2014-07-25-react-v0.11.1.md index c241b336..ce1c0993 100644 --- a/_posts/2014-07-25-react-v0.11.1.md +++ b/_posts/2014-07-25-react-v0.11.1.md @@ -1,6 +1,5 @@ --- title: React v0.11.1 -layout: post author: Paul O’Shannessy --- diff --git a/_posts/2014-07-28-community-roundup-20.md b/_posts/2014-07-28-community-roundup-20.md index 5c46bc16..0b4cfdf9 100644 --- a/_posts/2014-07-28-community-roundup-20.md +++ b/_posts/2014-07-28-community-roundup-20.md @@ -1,6 +1,5 @@ --- title: "Community Round-up #20" -layout: post author: Lou Husson --- @@ -52,12 +51,12 @@ React.renderComponent( ## Thinking and Learning React -Josephine Hall, working at Icelab, used React to write a mobile-focused application. She wrote a blog post [“Thinking and Learning React.js”](http://icelab.com.au/articles/thinking-and-learning-reactjs/) to share her experience with elements they had to use. You'll learn about routing, event dispatch, touchable components, and basic animations. +Josephine Hall, working at Icelab, used React to write a mobile-focused application. She wrote a blog post [“Thinking and Learning React.js”](http://icelab.com.au/articles/thinking-and-learning-reactjs/) to share her experience with elements they had to use. You'll learn about routing, event dispatch, touchable components, and basic animations. ## London React Meetup -If you missed the last [London React Meetup](http://www.meetup.com/London-React-User-Group/events/191406572/), the video is available, with lots of great content. +If you missed the last [London React Meetup](http://www.meetup.com/London-React-User-Group/events/191406572/), the video is available, with lots of great content. - What's new in React 0.11 and how to improve performance by guaranteeing immutability - State handling in React with Morearty.JS @@ -101,7 +100,7 @@ var Foo = React.createClass({ this.setState({scriptLoading: false, scriptLoadError: true}); }, render: function() { - var message = + var message = this.state.scriptLoading ? 'Loading script...' : this.state.scriptLoadError ? 'Loading failed' : 'Loading succeeded'; diff --git a/_posts/2014-07-30-flux-actions-and-the-dispatcher.md b/_posts/2014-07-30-flux-actions-and-the-dispatcher.md index 7075b900..5c6ec2fc 100644 --- a/_posts/2014-07-30-flux-actions-and-the-dispatcher.md +++ b/_posts/2014-07-30-flux-actions-and-the-dispatcher.md @@ -1,6 +1,5 @@ --- title: "Flux: Actions and the Dispatcher" -layout: post author: Bill Fisher --- @@ -30,7 +29,7 @@ Letting the stores update themselves eliminates many entanglements typically fou Why We Need a Dispatcher ------------------------ -As an application grows, dependencies across different stores are a near certainty. Store A will inevitably need Store B to update itself first, so that Store A can know how to update itself. We need the dispatcher to be able to invoke the callback for Store B, and finish that callback, before moving forward with Store A. To declaratively assert this dependency, a store needs to be able to say to the dispatcher, "I need to wait for Store B to finish processing this action." The dispatcher provides this functionality through its waitFor() method. +As an application grows, dependencies across different stores are a near certainty. Store A will inevitably need Store B to update itself first, so that Store A can know how to update itself. We need the dispatcher to be able to invoke the callback for Store B, and finish that callback, before moving forward with Store A. To declaratively assert this dependency, a store needs to be able to say to the dispatcher, "I need to wait for Store B to finish processing this action." The dispatcher provides this functionality through its waitFor() method. The dispatch() method provides a simple, synchronous iteration through the callbacks, invoking each in turn. When waitFor() is encountered within one of the callbacks, execution of that callback stops and waitFor() provides us with a new iteration cycle over the dependencies. After the entire set of dependencies have been fulfilled, the original callback then continues to execute. diff --git a/_posts/2014-08-03-community-roundup-21.md b/_posts/2014-08-03-community-roundup-21.md index 9b1afe0c..3c4bb3c2 100644 --- a/_posts/2014-08-03-community-roundup-21.md +++ b/_posts/2014-08-03-community-roundup-21.md @@ -1,6 +1,5 @@ --- title: "Community Round-up #21" -layout: post author: Lou Husson ---