createdInstance
Implements the createdInstance callback so it dispatches an event and updates the instance.
connection.createdInstance(instance, props)
Updates the instance with props
and dispatches a "created" event on the instance and the instances's
constructor function (Map).
Calls moveCreatedInstanceToInstanceStore to ensure new instances are moved into the instanceStore after being saved.
Parameters
- instance
{Map}
:a Map instance
- props
{Object}
:the data in the response from createData