-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to mini-create-router-context (#6692)
- Loading branch information
1 parent
2ce1d32
commit 992af48
Showing
5 changed files
with
47 additions
and
104 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
{ | ||
"esm/react-router.js": { | ||
"bundled": 23391, | ||
"minified": 13245, | ||
"gzipped": 3676, | ||
"bundled": 23396, | ||
"minified": 13250, | ||
"gzipped": 3680, | ||
"treeshaked": { | ||
"rollup": { | ||
"code": 2209, | ||
"import_statements": 465 | ||
"code": 2214, | ||
"import_statements": 470 | ||
}, | ||
"webpack": { | ||
"code": 3572 | ||
"code": 3577 | ||
} | ||
} | ||
}, | ||
"umd/react-router.js": { | ||
"bundled": 102432, | ||
"minified": 36295, | ||
"gzipped": 11538 | ||
"bundled": 98991, | ||
"minified": 35022, | ||
"gzipped": 11227 | ||
}, | ||
"umd/react-router.min.js": { | ||
"bundled": 63974, | ||
"minified": 22277, | ||
"gzipped": 7899 | ||
"bundled": 61594, | ||
"minified": 21423, | ||
"gzipped": 7606 | ||
} | ||
} |
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
// TODO: Replace with React.createContext once we can assume React 16+ | ||
import createContext from "create-react-context"; | ||
import createContext from "mini-create-react-context"; | ||
|
||
const createNamedContext = name => { | ||
const context = createContext(); | ||
context.displayName = name; | ||
|
||
return context; | ||
} | ||
}; | ||
|
||
const context = /*#__PURE__*/ createNamedContext('Router'); | ||
const context = /*#__PURE__*/ createNamedContext("Router"); | ||
export default context; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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