edge/account

Refactor 'update-entity' emit events to supply replacement data

Opened this issue · 0 comments

Example: 7f2e707

This emit sequence allows a nested component to trigger a reload of server data after the server has been changed. However, there is some redundancy here, because while server is received in the response data for the changed, it isn't passed back to the parent component to substitute; instead, a subsequent GET request is triggered.

We can reduce round trips by refactoring events in several places to allow response data to be passed up the component tree. The API provides consistent response entity data for almost all requests, so very little if anything needs to be done in the backend to make this happen.

This goes hand-in-hand with #238 to reduce avoidable traffic to the API and improve performance.