Closed makepanic closed 6 years ago
As it turns out, this is most likely caused by me using dependent keys that look like this:
relationshipName.id
Once i've changed the computed keys to relationshipName
, it worked without throwing an error during test teardown.
For those who see the same, on our side (Ember 3.4.4, ember-data 3.5) we had to remove a link for a parent relationship from a mirage response to make it work (couldn't find any computed property with .id
cache key that we could try to remove).
Hi,
When upgrading:
We're seeing failing acceptance tests as store teardown somehow triggers relationship fetches.
simplified call stack:
actual error stack:
Where
adapterFor
throws an error as the_adapterCache
is already null and it tries to lookup thenormalizedModelName
of null.I'm trying to get create a dummy project that reproduces the error but it's kinda hard to do. I'll update this issue once I got it to throw in a minimal project.
Here's the full stacktrace: