Skip to content

Conversation

ockham
Copy link
Contributor

@ockham ockham commented Oct 6, 2017

Up to now, server/bundler/loader was calling static methods of the component. This causes problems once the component is localize()d, since those methods aren't hoisted.
However, we can easily turn those static methods into module level functions.

Background: #18590 (comment)

To test:

  • Restart Calypso, and verify that it still runs.
  • Now introduce an error in some module, and restart Calypso again; navigate to the section that contains the error. The error should be displayed in the console; verify that it's not the generic (LoadingError component-related) error described at Framework: Run i18n-mixin-to-localize codemod #18590 (comment)

ockham added 3 commits October 6, 2017 11:57
Up to now, server/bundler/loader was calling static methods of the component. This causes problems once the component is `localize()`d, since those methods aren't hoisted.
However, we can easily turn those static methods into module level functions.
@ockham ockham added Framework [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Oct 6, 2017
@ockham ockham self-assigned this Oct 6, 2017
@matticbot
Copy link
Contributor

Copy link
Contributor

@psealock psealock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM, tested: works as expected

@ockham ockham merged commit 27558e3 into master Oct 9, 2017
@ockham ockham deleted the update/loading-error-statics branch October 9, 2017 09:44
@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 Oct 9, 2017
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.

3 participants