-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gatsby-link): Adds Type, PropType, tests, and docs for `st… (#20807)
* Fix code example for "Example of providing state to a link component" https://www.gatsbyjs.org/docs/location-data-from-props/#example-of-providing-state-to-a-link-component Signed-off-by: Tim Osborn <tim@memelab.com.au> * Add PropType and TS definition for the `state` prop Signed-off-by: Tim Osborn <tim@memelab.com.au> * Cross link docs relevant to GatsbyLink Signed-off-by: Tim Osborn <tim@memelab.com.au> * Add tests for passing state Signed-off-by: Tim Osborn <tim@memelab.com.au> * Update index.d.ts Co-authored-by: Ward Peeters <ward@coding-tech.com>
- Loading branch information
Showing
5 changed files
with
39 additions
and
3 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
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