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

Remove prefetch for async components #132

Merged
merged 2 commits into from
Jul 22, 2019

Conversation

colbat
Copy link
Collaborator

@colbat colbat commented Jul 22, 2019

Reference issue: #129

What changed in this PR:

Removes prefetch for asynchronously mounted components.

@@ -120,7 +119,6 @@ export default {
args[args.length - 1].value
}"`
: '',
'webpackPrefetch: true',
Copy link
Contributor

Choose a reason for hiding this comment

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

We can probably get rid of the array and the .filter(Boolean).join(',') and have only:

value: path.get('key').is('StringLiteral')
    ? `webpackChunkName: "${args[args.length - 1].value}"`
    : '',

What do you think?

@@ -1,5 +1,6 @@
## master
- Do not log warning for component first emission in `melody-streams` in production [#128](https://github.com/trivago/melody/pull/128)
- Removes prefetch for asynchronously mounted components [#129](https://github.com/trivago/melody/issues/129)
Copy link
Contributor

Choose a reason for hiding this comment

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

Would be more clear if we had Removes webpackPrefetch...

@ayusharma ayusharma merged commit c815194 into master Jul 22, 2019
@ayusharma ayusharma deleted the remove-prefetch-for-async-components branch July 22, 2019 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants