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

"You attempted to update length on Class" on ember canary #172

Closed
mydea opened this issue Sep 1, 2020 · 5 comments
Closed

"You attempted to update length on Class" on ember canary #172

mydea opened this issue Sep 1, 2020 · 5 comments

Comments

@mydea
Copy link
Contributor

mydea commented Sep 1, 2020

All my tests for an addon started failing on canary recently. After doing some digging, it seems it is caused by this addon.

Basically, if I remove the {{title}} declaration in my index route template:

{{head-layout}}
{{title 'my addon'}}

Everything works again. If there is at least one {{titlte}} anywhere, I get:

Error: Assertion Failed: You attempted to update length on Class, but it had already been used previously in the same computation. Attempting to update a value after using it in a computation can cause logical errors, infinite revalidation bugs, and performance issues, and is not supported.

@mydea mydea changed the title Breaks on Canary "You attempted to update length on Class" on ember canary Sep 1, 2020
@knownasilya
Copy link
Contributor

This should be resolved with #168 or related prs.

@boris-petrov
Copy link
Contributor

@knownasilya - Ember 3.22 is out and this error prevents us from upgrading to it. Is a new version of ember-page-title going to be released to address this?

@knownasilya
Copy link
Contributor

Looking to see if a release can happen tonight. Will update you here.

@knownasilya
Copy link
Contributor

v6 should be out now.

@boris-petrov
Copy link
Contributor

@knownasilya - thank you for the immediate response! Works like a charm, thank you!

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