-
Notifications
You must be signed in to change notification settings - Fork 47.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged changes from 4.0.0 -> 4.0.5 from DevTools fork
- Loading branch information
Showing
44 changed files
with
870 additions
and
222 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
|
||
<script src="https://unpkg.com/react@16/umd/react.development.js"></script> | ||
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script> | ||
<script src="https://unpkg.com/[email protected]/dist/immutable.js"></script> | ||
|
||
<!-- Don't use this in production: --> | ||
<script src="https://unpkg.com/[email protected]/babel.min.js"></script> | ||
|
@@ -255,6 +256,33 @@ <h1>List</h1> | |
); | ||
} | ||
|
||
const set = new Set(['abc', 123]); | ||
const map = new Map([['name', 'Brian'], ['food', 'sushi']]); | ||
const setOfSets = new Set([new Set(['a', 'b', 'c']), new Set([1, 2, 3])]); | ||
const mapOfMaps = new Map([['first', map], ['second', map]]); | ||
const typedArray = Int8Array.from([100, -100, 0]); | ||
const immutable = Immutable.fromJS({ | ||
a: [{ hello: 'there' }, 'fixed', true], | ||
b: 123, | ||
c: { | ||
'1': 'xyz', | ||
xyz: 1, | ||
}, | ||
}); | ||
|
||
function UnserializableProps() { | ||
return ( | ||
<ChildComponent | ||
map={map} | ||
set={set} | ||
mapOfMaps={mapOfMaps} | ||
setOfSets={setOfSets} | ||
typedArray={typedArray} | ||
immutable={immutable} | ||
/> | ||
); | ||
} | ||
|
||
function ChildComponent(props: any) { | ||
return null; | ||
} | ||
|
@@ -264,6 +292,7 @@ <h1>List</h1> | |
<Fragment> | ||
<SimpleValues /> | ||
<ObjectProps /> | ||
<UnserializableProps /> | ||
<CustomObject /> | ||
</Fragment> | ||
); | ||
|
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
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
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
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
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
Oops, something went wrong.