Help solve the issue with the organization stoor. In the application there are many nested objects, for each of which you need to monitor the status:

Корневой объект Объект типа А 1 Объект типа Б 1 Объект типа В 1 Объект типа В 2 Объект типа Б 2 Объект типа В 3 Объект типа В 4 Объект типа А 2 Объект типа Б 3 Объект типа В 5 Объект типа В 6 Объект типа Б 4 Объект типа В 7 Объект типа В 8 Объект типа А 3 Объект типа Б 5 Объект типа В 9 Объект типа В 10 Объект типа Б 6 Объект типа В 11 Объект типа В 12 ... Объект типа А N 

The number of nested objects of each type can vary.

How best to organize storage? Create the "Root Storage" object with the Maps of all the nested objects and create the "objectA / loaded", "objectB / loaded" event types, etc. and pass in the chain of identifiers? The slightest change will enumerate all objects.

Or create multiple Stores. StoreA, StoreB, StoreN, where to send the event with the id of a specific object? The slightest change will enumerate all objects of the corresponding type.

Or maybe there is a method of creating stores on the fly? Something like new TypeAStore and bind it to a specific object in order to process only its events.

    0