Skip to content

fix: make emergent unsupported behaviors safer in prod#9120

Merged
runspired merged 5 commits intolts-4-12from
emergent-4-12
Nov 17, 2023
Merged

fix: make emergent unsupported behaviors safer in prod#9120
runspired merged 5 commits intolts-4-12from
emergent-4-12

Conversation

@runspired
Copy link
Contributor

@runspired runspired commented Nov 17, 2023

In older versions of EmberData (<=4.6), accessing a sync belongsTo or sync hasMany relationship before its related data was loaded while in production mode would lead to buggy behaviors but would not necessarily immediately crash the app.

In new versions of EmberData, this same pattern generally would fail immediately.

Some of these failures were eventually recoverable as long as the app caught the error, others were not. This PR makes 4.12 behave as close as is feasible to 4.6 in these regards.

@runspired runspired added 🏷️ test This PR primarily adds tests for a feature 🏷️ bug This PR primarily fixes a reported issue backport-lts PR targets the current lts branch labels Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-lts PR targets the current lts branch 🏷️ bug This PR primarily fixes a reported issue 🏷️ test This PR primarily adds tests for a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant