From 53c65276bb56337bf4c3e417a3c72708623e616b Mon Sep 17 00:00:00 2001 From: Sean Matheson Date: Fri, 17 Mar 2017 21:14:00 +0800 Subject: [PATCH] Preps version 2.0.0-alpha.3 --- README.md | 4 +++- package.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bc8f9bf..1b38ebc 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,9 @@ Walk a React element tree, executing a provided visitor function against each el ## Introduction -This is a extract of the implementation within the awesome [`react-apollo`](https://github.com/apollostack/react-apollo) project. I've come to find many use-cases for it in my own projects and want to avoid code duplication. +Originally inspired/lifted from the awesome [`react-apollo`](https://github.com/apollostack/react-apollo) project. + +This modified version expands upon the design, making it `Promise` based, and allowing a visit by a visitor to return a `Promise`, which would subsequently delay the tree walking until the `Promise` is resolved. The tree is still walked in a depth-first fashion. With this you could, for example, perform pre-rendering parses on your React element tree to do things like data prefetching. 🤛 diff --git a/package.json b/package.json index 5f83db8..ed6607b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-tree-walker", - "version": "2.0.0-alpha.2", + "version": "2.0.0-alpha.3", "description": "Walk a React element tree, executing a provided function against each node.", "license": "MIT", "main": "commonjs/index.js",