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

chore(runtime-core): rename createAsyncComponent as defineAsyncComponent #887

Closed

Conversation

cexbrayat
Copy link
Member

As we declare a component with defineComponent, it would feel less surprising to declare an async component with defineAsyncComponent.

Feel free to close if this bikeshedding has been discussed already, I just felt it was better to discuss it now, rather when it's too late 🙂

As we declare a component with `defineComponent`, it feels less surprising to declare an async component with `defineAsyncComponent`.
@yyx990803
Copy link
Member

This is different, because defineComponent is only used for type inference and doesn't do anything in itself, while createAsyncComponent actually creates an async component wrapper.

@yyx990803 yyx990803 closed this Mar 26, 2020
@yyx990803
Copy link
Member

If anything, the RFC is still open: vuejs/rfcs#148

@cexbrayat cexbrayat deleted the chore/define-async-component branch March 26, 2020 14:23
@cexbrayat cexbrayat restored the chore/define-async-component branch March 26, 2020 15:44
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.

2 participants