Skip to content

Commit

Permalink
Preps version 2.0.0-alpha.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlplusb committed Mar 17, 2017
1 parent f7da70d commit 53c6527
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. 🤛

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 53c6527

Please sign in to comment.