Issue with `performCount` on Ember v3.15
See original GitHub issueWe tried to update our app to Ember 3.15 this morning and the test suite of one of our apps uncovered the following issue:
Assertion Failed: You attempted to update
performCount
on<(unknown):ember22520>
, 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.
performCount
was first used:
- While rendering: (instance of a
(unknown function)
modifier)Stack trace for the first usage: at get (http://localhost:7357/assets/vendor.js:39430:11) at Class.incrementProperty (http://localhost:7357/assets/vendor.js:53987:72) at Class.schedule (http://localhost:7357/assets/vendor.js:158913:12) at Class._performShared (http://localhost:7357/assets/vendor.js:160316:23) at Class.perform (http://localhost:7357/assets/vendor.js:160286:19) at XValidatedInput._focus (http://localhost:7357/assets/vendor.js:143177:33) at XValidatedInput.focusIn (http://localhost:7357/assets/vendor.js:143157:12) at XValidatedInput.trigger (http://localhost:7357/assets/vendor.js:59364:23)
I haven’t been able to come up with a reproduction yet, but I’ll update this issue if I can provide one.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:10 (2 by maintainers)
Top GitHub Comments
@maxfierke that was totally it! time to add https://github.com/salsify/ember-cli-dependency-lint to this project…
appreciate it 😃
that double negation is hard to parse 😅