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

Use async import for vue component on collections entrypoint #3177

Merged
merged 1 commit into from
Jul 9, 2021

Conversation

juliusknorr
Copy link
Member

Same as in nextcloud/spreed#5974

Use async loading of the component that get triggered in the files app or the collections as otherwise the imports of dependent components from @nextcloud/vue takes up quite some time when loading the files app initially without triggering the display.

Signed-off-by: Julius Härtl <jus@bitgrid.net>
const SelectorView = Vue.extend(CardSelector)
const ComponentVM = new SelectorView({
propsData: {
const CardSelector = () => import('./../CardSelector')
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
const CardSelector = () => import('./../CardSelector')
const CardSelector = () => import('../CardSelector')

Copy link
Member

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

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

👍 makes sense

@PVince81
Copy link
Member

PVince81 commented Jul 9, 2021

can't merge due to "out-of-date" rule

@juliusknorr juliusknorr merged commit 13d2b98 into master Jul 9, 2021
@delete-merged-branch delete-merged-branch bot deleted the enh/collections-files-load-perf branch July 9, 2021 14:25
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