Skip to content

Commit 53c6527

Browse files
committed
Preps version 2.0.0-alpha.3
1 parent f7da70d commit 53c6527

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ Walk a React element tree, executing a provided visitor function against each el
1515

1616
## Introduction
1717

18-
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.
18+
Originally inspired/lifted from the awesome [`react-apollo`](https://github.com/apollostack/react-apollo) project.
19+
20+
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.
1921

2022
With this you could, for example, perform pre-rendering parses on your React element tree to do things like data prefetching. 🤛
2123

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-tree-walker",
3-
"version": "2.0.0-alpha.2",
3+
"version": "2.0.0-alpha.3",
44
"description": "Walk a React element tree, executing a provided function against each node.",
55
"license": "MIT",
66
"main": "commonjs/index.js",

0 commit comments

Comments
 (0)