-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
schedule watchTypeIfUnseen to prevent loop #8008
Conversation
could also fix emberjs/ember-inspector#1875 |
@patricklx I was having a similar issue & stack trace to you - but I just tried running your branch locally and it hasn't fixed anything for me. Funny enough it's on a regex call. Do you think you could look at this one? Might be a quick/similar fix. |
I think that's something else. You can get a Maximum call stack size exceeded with the regex.test alone as well if its on a strange string. At least i do not see a loop there |
@patricklx Would you mind adding a test if applicable to |
@snewcomer i changed the debug-adapter-test to use createRecord. This will cause the test to fail, but work with the fix i provide. |
Can confirm this fix addressed similar loop issues for me. Originally it did not because I was running ember 3.28, ember-data 4.4 (your branch), and ember-cli 4.2.0. Updating ember-cli to 4.4.0 and manually adding your fix to the NPM-installed ember-data 3.28.10 fixed this issue. Could we get this applied to a 3.28.11 as well? :) |
This fixes #8006 for me |
@patricklx looks like the tests fail, mind rebasing and looking into that? |
I would also appreciate a 3.28.11 release on this one. It had me scratching my head for half a day wondering how my typescript upgrades were call stacking and triggering illegal character issues. Thanks for fixing this @patricklx! |
@brandensilva in the works |
* schedule watchTypeIfUnseen to prevent loop fixes #8006 * Update debug-adapter-test.js * Update index.js * Update index.js * fix test * Update debug-adapter-test.js * keep Watching Model Types with store.push * add comment * fix test
* backport fix for #7786 from #7882 * schedule watchTypeIfUnseen to prevent loop (#8008) * schedule watchTypeIfUnseen to prevent loop fixes #8006 * Update debug-adapter-test.js * Update index.js * Update index.js * fix test * Update debug-adapter-test.js * keep Watching Model Types with store.push * add comment * fix test * [BUGFIX] serialize null array items to string (#8083) * port fix from #7834 for #7824 Co-authored-by: patricklx <patricklx@users.noreply.github.com> Co-authored-by: Cameron Dubas <camerondubas@gmail.com>
fixes #8006