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

Recursive Linked Messages #247

Closed
nau32 opened this issue Oct 27, 2017 · 1 comment
Closed

Recursive Linked Messages #247

nau32 opened this issue Oct 27, 2017 · 1 comment
Labels
Type: Bug Bug or Bug fixes

Comments

@nau32
Copy link

nau32 commented Oct 27, 2017

Hello,

This is a concern I would like to bring up. There doesn't seem to be a way to stop recursive Linked Messages. This would be useful during development and troubleshooting, especially on applications with many text to render, it would be nice to see which Key it failed on.

In Chrome Dev Tools it would hit a [Vue warn]: Error in render function: "InternalError: too much recursion" error.

A suggestion would be to keep track of the processed Linked Message Keys and if it encounters it again, to log a detailed error on which Key it suspected. Any other solution is welcome!

Thank You!

vue & vue-i18n version

"vue": "^2.4.4",
"vue-i18n": "^7.3.2"

Steps to reproduce
enca.json

{
    "introMessage": "Welcome @:firstName, Thank you for considering the @:desiredProduct. We are here to help!",
    "firstName": "Elon @:introMessage"
}

What is Expected?
{{ $t("introMessage") }} shouldn't enter an infinite loop and log a detailed error of which Key was being processed again.

What is actually happening?
Browser hits this error [Vue warn]: Error in render function: "InternalError: too much recursion"

@nau32
Copy link
Author

nau32 commented Oct 15, 2018

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Bug or Bug fixes
Projects
None yet
Development

No branches or pull requests

2 participants