-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[1.0] Upgrade React Router to v4 #940
Merged
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
9f7f080
WIP RR v4 working in development
KyleAMathews 98b61f0
Add scrolling support + small refactors
KyleAMathews 4e16c1d
Add clientside 404 support
KyleAMathews db3b3c6
Use more generic id for root div for Gatsby
KyleAMathews cd0ae5f
Avoid unneeded dependency on create-react-class
KyleAMathews b42804b
Use fork of catch-links to avoid its dependency on the url module whi…
KyleAMathews 967410a
Remove react-ga dependency as it adds unneeded weight
KyleAMathews ece3491
Static rendering working and production client entry sorta working
KyleAMathews e509782
Get router working in production w/ lazy loading of bundles
KyleAMathews 41a4d26
Make this.props.children a function in layouts so can control which p…
KyleAMathews 7efee0b
Add path-to-regexp to list of modules that should always be in commons
KyleAMathews 54c3aab
Expose navigateTo on gatsby-link for programmatic navigation
KyleAMathews 711a25d
Stop using term 'routes'
KyleAMathews 9a40b02
Remove old routes generation code
KyleAMathews 6413cdf
Rename file
KyleAMathews fd0dcc3
Add support for client-only paths & example site for this
KyleAMathews c65c2d9
Merge branch '1.0' into rr4
KyleAMathews 48e2735
Format + remove debugging
KyleAMathews File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,7 @@ module.exports = React.createClass({ | |
} | ||
}, | ||
render() { | ||
console.log(this.props) | ||
return ( | ||
<div> | ||
<Helmet | ||
|
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refactor proposition:
https://codepen.io/fabien0102/pen/MmrqKe?editors=0011#
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it! I'll make that change. Object/array spreading makes reducing quite nice!