-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
docs(migrating-to-v2): fix typos #7892
Conversation
@@ -407,7 +407,7 @@ Now, to add state to a link, pass it via a `state` prop. | |||
```jsx | |||
const NewsFeed = () => ( | |||
<div> | |||
<Link to="photos/123" state={{ fromNewsFeed: true }} /> | |||
<Link to="photos/123" state={{ fromFeed: true }} /> |
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.
docs/docs/migrating-from-v1-to-v2.md
Outdated
@@ -843,7 +843,7 @@ In most cases you won't have to do anything to be v2 compatible, however there a | |||
|
|||
```json | |||
"peerDependencies": { | |||
"gatsby": ">=1" | |||
"gatsby": ">=2" |
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.
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.
If the plugin works for Gatsby v1 and v2 then >=1
is fine. A lot of plugins specify 1
as the supported version.
Maybe this docblock could be changed from json
to diff
and updated to show the change?
- "gatsby": "1"
+ "gatsby": ">=1"
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.
Thanks @macklinu 👍
I've requested one small change, otherwise all good!
docs/docs/migrating-from-v1-to-v2.md
Outdated
@@ -843,7 +843,7 @@ In most cases you won't have to do anything to be v2 compatible, however there a | |||
|
|||
```json | |||
"peerDependencies": { | |||
"gatsby": ">=1" | |||
"gatsby": ">=2" |
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.
If the plugin works for Gatsby v1 and v2 then >=1
is fine. A lot of plugins specify 1
as the supported version.
Maybe this docblock could be changed from json
to diff
and updated to show the change?
- "gatsby": "1"
+ "gatsby": ">=1"
@m-allanson thanks for the feedback! I've addressed your comment and pushed up. |
63e6612
to
6d35e1e
Compare
@m-allanson I rebased the latest master into my branch and pushed up and didn't realize it would dismiss your review, my bad 😅 |
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.
Looks great, thanks @macklinu 👍
The dismissed reviews are a bit unexpected, I've been caught by that too! Generally I wouldn't worry about rebasing for pull requests unless something is broken. As the rebase changes the commit times it can make it harder to see what's changed between PR reviews. All good on this one though, thanks for handling these updates :) |
This PR cleans up a few typos / examples in the migrating from v1 to v2 guide.