Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upBug: Handling of symbols when used as deps incorrectly to create error message results in an unrelated TypeError: Cannot convert a Symbol value to a string #19867
Conversation
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 5ef6705:
|
Details of bundled changes.Comparing: 8b2d378...5ef6705 react-dom
react-reconciler
react-art
react-test-renderer
react-native-renderer
ReactDOM: size: 0.0%, gzip: 0.0% Size changes (experimental) |
Details of bundled changes.Comparing: 8b2d378...5ef6705 react-dom
react-native-renderer
react-reconciler
react-art
react-test-renderer
ReactDOM: size: 0.0%, gzip: 0.0% Size changes (stable) |
| @@ -194,6 +194,20 @@ let hookTypesUpdateIndexDev: number = -1; | |||
| // When true, such Hooks will always be "remounted". Only used during hot reload. | |||
| let ignorePreviousDependencies: boolean = false; | |||
|
|
|||
| function joinArray(collection: Array<mixed>, separator: string = ''): string { | |||
omarsy
Sep 19, 2020
Author
Contributor
Maybe we can move this function in another file ?
Maybe we can move this function in another file ?
|
Since you did make seperate function you might as well apply it recursively. Otherwise, the error will still happen if you for some reason have With that in mind, I think a comment about why it's done like this is prudent. |


Fixes #19848
Summary
Test Plan