mattermost-plugin-github
mattermost-plugin-github copied to clipboard
Avoid double fetching post data
NOTE: This PR must be merged before code will appear in master. If it is merged, feel free to take!
I suggest we have this component receive the post (or even just postMessage if we don't need anything else) so we can avoid a double fetch to the API to get the post.
Relevant lines of code are linked below.
https://github.com/mattermost/mattermost-plugin-github/pull/123/files/cc4ed0749ae13f9c7ea2a71592e666d7cbfd22aa#diff-71ba01315c638d511aa23811dcd1c081R15
Originally posted by @marianunez in https://github.com/mattermost/mattermost-plugin-github/pull/123
@wiggin77 Should we pick this enhancement
Approved by Eric CC: @wiggin77