Uploaded image for project: 'Network Controller'
  1. Network Controller
  2. SDNC-844

SDN-R odlux timing issue in performanceApp during login and logout

XMLWordPrintable

      In performanceApp we have introduced dependency on connectApp to get the connected network elements from the connectApp.
      Found issue when you logout and log in back directly to the performance app with its URL.
      I see the connected elements are not loaded. But when you go to connectApp and come back to performanceApp it loads the network elements.
      There must be a timing issue in this case in which state of connectApp is not dispatched/loaded when you directly open performanceApp.
      Background of the issue:-
      In connectedNetworkElementActions.tsx
      when trying to get state of connectApp, because of timing issue, data from connect app is not loaded before dispatching to the performanceApp.
      So I have added windows.setTimeout() to resolve it as in the below code. It resolved the issue and it loads the elements when u are on performance app (refresh or reload) without navigating to connectApp.
      But, when you logout and login and then directly navigate to performance app, it does not load the connected elements from connect app(which means timing issue in dispatching the state of connect app).
      it works when you navigate to connect app and come back to performance app.
      Please let me know how to solve this.

            Unassigned Unassigned
            sai-neetha Sai Neetha Phulmali
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: