Results 1 to 3 of 3

Thread: Component event cycles

  1. #1
    Sencha User
    Join Date
    Sep 2016
    Posts
    7

    Default Component event cycles

    The app I'm currently working on requires a (currently) simple level of user authentication. After authentication, several stores autoload making service calls with the user credentials.

    In the event cycle, what listener event (and more importantly, in which component) would allow me to set the user credentials as a global variable before the stores load so as the proxies can pass in extraParams?

  2. #2
    Sencha - Support Team bjdurham85's Avatar
    Join Date
    Mar 2014
    Posts
    962
    Answers
    55

    Default

    Hi--,

    I don't have a full understanding of your scenario but a global variable/localStorage should be feasible. I'd imagine this be checked (initially) and updated upon login. **Does it need to persist on say browser close?

    Do you have a specific type of store you're using so I can check some configs?

    Bryan

  3. #3
    Sencha Premium User
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    2,425
    Answers
    20

    Default

    Quote Originally Posted by kevin.k View Post
    In the event cycle, what listener event (and more importantly, in which component) would allow me to set the user credentials as a global variable before the stores load so as the proxies can pass in extraParams?
    This information probably shouldn't be stored in a component (view) but rather in the top-level view model from which all other view models can inherit.

Similar Threads

  1. Improvement of release cycles
    By geek0r in forum Community Discussion
    Replies: 18
    Last Post: 17 Sep 2015, 1:22 AM
  2. Custom component(ticker) increasing CPU cycles 10 times.
    By KnowledgeSeeker in forum Ext 5: Q&A
    Replies: 2
    Last Post: 4 Nov 2014, 12:46 PM
  3. Listen to the event fired by non component object (not Ext.Component)
    By jastako in forum Sencha Touch 2.x: Discussion
    Replies: 4
    Last Post: 15 Dec 2012, 3:35 PM
  4. Replies: 5
    Last Post: 13 Oct 2012, 3:01 PM
  5. Sample-Menu example that automatically cycles through menu?
    By artlab in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 18 Feb 2008, 11:07 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •