Impossible to nest resources
I compiled a https://jsfiddle.net/q60so29h/16/ to explain the problem.
The output work on the JSFiddle, but it is a bug. I do not understand why it outputs the created event correctly : it should not.
The problem is that there is only one current resource, and bind-resources
relies on it. Now if you are on a URL that relies on that resource ID, say an action page. If you create a nested resource from there, say an event associated to that action, the current resource will switch to being the newly created event. Now if you navigate back to the action page, bind-resources
reference the newly created event, and not the action id anymore.
In the JSFiddle, although it doesn't crash, you can see the data-src
of the sib-display
ends up being : https://u4e.happy-dev.fr/api/events/6/
, with an id-suffix
of event_set
. This doesn't exists and crashes.