You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncaught Error: Attempted to handle event `deleteRecord` on <studbits@model:note::ember778:4> while in state root.loaded.updated.inFlight.
Uncaught Error: Assertion Failed: You modified transitioningIn twice in a single render. This was unreliable and slow in Ember 1.x and is no longer supported.
I'm not sure about the first error, but the second one is said to reference this issue. As discussed there, "In the middle of the rendering process, I have modified something that has already been rendered".
At first, I thought it was because I was using different references of my model (getting one for the controller and another one in the component). But even when I give the model as an argument (as shown below) the error persists.
when I try to delete an object with saveNote() commented out, everything works fine. But when both coexist together, I get the aforementioned errors and can't seem to work my way around them.
If this is indeed where the problem lies, what would be a correct way to have such two actions (e.g. an autosave and delete button) coincide with Glimmer 2?
The text was updated successfully, but these errors were encountered:
The problem here is that when you click the button you are focusing out of note-buddy, so it runs the associated action handler. This means that you trigger a save, and a delete immediately after, and Ember Data gives you the errors at the top of your post. Maybe you can handle the focusOut event at the component level instead?
If you require further assistance, post on Stack Overflow or reach us on Slack. Thanks for reporting!
I'm getting these two errors in conjunction:
I'm not sure about the first error, but the second one is said to reference this issue. As discussed there, "In the middle of the rendering process, I have modified something that has already been rendered".
At first, I thought it was because I was using different references of my model (getting one for the controller and another one in the component). But even when I give the model as an argument (as shown below) the error persists.
Here's an example code that causes this:
when I try to delete an object with
saveNote()
commented out, everything works fine. But when both coexist together, I get the aforementioned errors and can't seem to work my way around them.If this is indeed where the problem lies, what would be a correct way to have such two actions (e.g. an autosave and delete button) coincide with Glimmer 2?
The text was updated successfully, but these errors were encountered: