-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support route conditional fragments returning an array
Summary: Gave #896 a try. modifies `createNode` and `getChildren` to possibly return an array of nodes when a route conditional fragment reference returns an array. Let me know what you think, It's seems weird to have `createNode` possibly return an Array but I'm not sure how it could be done without it! [Updates to original PR from wincent: switched `var` to `let`/`const`, avoided an array allocation in `getChildren`.] Closes #915 Reviewed By: josephsavona Differential Revision: D3484897 Pulled By: wincent fbshipit-source-id: 0d101bf63e1a7e5669fc4bd9094e0d35c17c8c40
- Loading branch information
Showing
2 changed files
with
77 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters