Gatsby: boundActionCreators warning should say to replace them with "actions" and also link to the upgrade docs for this

Created on 28 Jul 2018  路  5Comments  路  Source: gatsbyjs/gatsby

boundActionCreators warning should say to replace them with "actions" and also link to the upgrade docs for this

good first issue help wanted maintenance

Most helpful comment

Hi, I'm new here and I'd love to take this!

All 5 comments

@KyleAMathews: I updated this from a card to an issue so that it could be moved into the appropriate sub-epic.

We should link to https://next.gatsbyjs.org/docs/migrating-from-v1-to-v2/#rename-boundactioncreators-to-actions in the error message.

The error message is generated here:

https://github.com/gatsbyjs/gatsby/blob/b6bdb82555893177a6c85d62b28abe471e484b8d/packages/gatsby/src/commands/develop.js#L388-L421

I think we can modify it a bit:

    const fixMap = {
      boundActionCreators: {
        newName: `actions`,
        docsLink: `https://next.gatsbyjs.org/docs/migrating-from-v1-to-v2/#rename-boundactioncreators-to-actions`,
      },
      // ...
    }

And then update the print template to show that docs link as well.

This would be a great first issue for someone!

Hi, I'm new here and I'd love to take this!

Yes! Thanks @thefifthisa! Let us know if you have questions or need a second set of eyes. 馃挭馃挏

@jlengstorf Just opened a PR! Please let me know what I need to change or if it's okay already.

Was this page helpful?
0 / 5 - 0 ratings