PDA

View Full Version : [OPEN] Store requirements when working with ViewModels



clampart
24 Feb 2017, 1:12 AM
Hello Architect devs,

when dragging a store from the Stores section in Project Inspector into a ViewModel of a Class,
the Store isn't removed from the Application's requirements.
This leads to an error in bootstrap.js because the old store's class isn't found though still required.

And vice versa, when you pull a Store form a ViewModel back into the Stores section,
it is not added to the Application's requirements.
So when you set this store as data source for e.g. a grid, the app fails on instantiating it because it's
store is undefined because the class wasn't loaded.

The second point fails late, possibly only in some progressed app state and is therefore rather serious.

Kind regards,
clampart

Sencha Architect



Version:
4.1.1.123





Channel:
4.1-stable





Platform:
1.2.8.3 - darwin x64





Renderer:
51.0.2704.106





Cmd:
6.2.1.29





Framework:
Ext JS 6.2.x Classic

jan.turon
24 Feb 2017, 2:41 AM
Hello clampart!
Thanks for the report! I have opened a bug in our bug tracker.