Skip to content
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

Framework: Iterate on getHttpData() #24656

Merged
merged 2 commits into from
May 6, 2018
Merged

Conversation

dmsnell
Copy link
Member

@dmsnell dmsnell commented May 3, 2018

From feedback in #24631

  • Make fromApi lazy since it gets called
    on every render and might be expensive

  • Allow fetch to be lazy for the same reason

  • Merge common.js into index.js to consolodate imports

There's no real testing instructions since this code is dormant
right now in Calypso. Please focus on the code itself and the
implications of the changes.

From feedback in #24631

 - Make `fromApi` lazy since it gets called
   on every render and might be expensive

 - Allow `fetch` to be lazy for the same reason

 - Merge `common.js` into `index.js` to consolodate imports
@dmsnell dmsnell added Framework [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels May 3, 2018
@matticbot
Copy link
Contributor

@dmsnell dmsnell merged commit 03204ab into master May 6, 2018
@dmsnell dmsnell deleted the framework/changes-to-get-http-data branch May 6, 2018 15:57
@matticbot matticbot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label May 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants