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

disable recursive component lookup #1279

Closed
TerenceZ opened this issue Sep 9, 2015 · 4 comments
Closed

disable recursive component lookup #1279

TerenceZ opened this issue Sep 9, 2015 · 4 comments

Comments

@TerenceZ
Copy link

TerenceZ commented Sep 9, 2015

In 1.0.0, I find that if the component's name is defined, it will set itself into its options.components in implicit. So if I have a component name nav and its template is <nav></nav>, it will lead to max call size exceeded and there is no way to disable this behavior expect rename component's name nav to others.

@yyx990803
Copy link
Member

Nav is a native element. You shouldn't be using it as a component in the
first place...
On Wed, Sep 9, 2015 at 4:22 AM terencez notifications@github.com wrote:

In 1.0.0, I find that if the component's name is defined, it will set
itself into its options.components in implicit. So if I have a component
name nav and its template is

, it will lead to max call size
exceeded and there is no way to disable this behavior expect rename
component's name nav to others.


Reply to this email directly or view it on GitHub
https://github.com/yyx990803/vue/issues/1279.

@azamat-sharapov
Copy link

I think I have in source once, where Vue checked if tag name is native HTML, before registering component.. I might be mistaking though.

@yyx990803
Copy link
Member

@azamat-sharapov it does, but I missed the new HTML5 ones...

@yyx990803
Copy link
Member

Closing because I think renaming is the obvious thing to do here: it's a good idea to avoid the ambiguity between "native element" vs "recursive calls".

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

No branches or pull requests

3 participants