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

[Bug] "Error: Cycles in tags are not allowed" with queryParams #19078

Closed
velrest opened this issue Aug 5, 2020 · 1 comment
Closed

[Bug] "Error: Cycles in tags are not allowed" with queryParams #19078

velrest opened this issue Aug 5, 2020 · 1 comment

Comments

@velrest
Copy link

velrest commented Aug 5, 2020

🐞 Describe the Bug

If two queryParams are defined in a controller and both are set to @tracked and one is initiated with a default value of [] , the following error occurs:
validator.js:294 Uncaught (in promise) Error: Cycles in tags are not allowed

Both params are passed via hash to a component which then renders both. If one render call to either of those params is commented out, the error does not occur.

If the params are rendered directly in the application.hbs the error does not occur.

🔬 Minimal Reproduction

https://ember-twiddle.com/caa471592cc3e3b86a5e61857c99ea00?openFiles=templates.application%5C.hbs%2Ctemplates.components.my-component%5C.hbs
The twiddle has some cases which work and the initially described case which does not work.

😕 Actual Behavior

The template renders and an error occurs which then stops code execution.

🤔 Expected Behavior

The templates renders and no error is thrown.

🌍 Environment

  • Ember: 3.18.1-
  • Node.js/npm: 14.4.0-
  • OS: Arch Linux-
  • Browser: Chrome Version 83.0.4103.116 (Official Build) Arch Linux (64-bit)-
@rwjblue
Copy link
Member

rwjblue commented Aug 5, 2020

Seems like this is a duplicate of #18981, would you mind chiming in over there?

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

2 participants