View Full Version : Where/How to store simple Data (not a list of data in a store)?

18 Jan 2012, 2:32 AM
Hi Sencha Community.
I'm pretty new to Ext JS (coming from a Adobe Flex background) and I'm loving it so far. But I have the following question:

Where can I store some simple data (e.g. presentation data: isLoggedIn or isTooltipHelpActivated)? With simple data I mean values that exist just once (no collections) and do not need to be persisted in the backend. So the datastore doesn't seem the right place for that kind of data. I global Singleton would do it, but not a big fan of this (anti-)pattern.

Any hints?
Thanks in advance!

18 Jan 2012, 2:58 AM
Pretty much what you suggested. If it's a value that isn't local to some class and needs to be accessed everywhere in your app, I would use a global singleton with a series of properties.

18 Jan 2012, 5:50 AM
ok thanks. I thought there might be a special place where to store (access) those kind of data.