How to prevent Spinner from mangling stacktrace

Hi,
my setup:
  • Aurelia project (created with aurelia cli: au new, picked custom (3), with requireJS and typescript)
  • Syncfusion Essential JS2
  • Debugging in ChromeVersion 66.0.3359.66 under Windows
Normally, when you want to track which code is triggering a certain network request, particularly one that fails, you can just open up the corresponding error message in the Chrome console and see the stracktrace.

But when I am using SF Essential JS2, the stacktrace looks, for example, like in the attached screenshot. Most of the stacktrace points to spinner.js:430 although clearly methods like changeLanguage and setLng are not part of spinner, but of the internationalization framework I use (i18next).


This is highly annoying because it makes it extremely difficult to find the actual cause of certain problems in my own code-base.
Is there any way to disable this or Spinner altogether temporarily?

--------

As an aside, the documentation does not say very much about spinner, basically just how to customize it.
How would one show/hide it manually, independent of any other SF components?

Many thanks,
Markus

Attachment: SpinnerStacktrace_496b2dda.7z

3 Replies

AP Arun Palaniyandi Syncfusion Team April 9, 2018 07:24 AM UTC

Hi Markus Hajek,   
   
Thanks for contacting Syncfusion support.   
   
Query1:” But when I am using SF Essential JS2, the stacktrace looks, for example, like in the attached screenshot. Most of the stacktrace points to spinner.js:430 although clearly methods like changeLanguage and setLng are not part of spinner, but of the internationalization framework I use (i18next).This is highly annoying because it makes it extremely difficult to find the actual cause of certain problems in my own code-base.Is there any way to disable this or Spinner altogether temporarily?”   
   
We have also tried a sample with the Aurelia CLI and we couldn't proceed with provided information. Hence we request you to provide the below sufficient details to reproduce the issue in our end    
 
·         Whether you are integrated spinner with any of our other EJ2 component? If so please let us know that component? 
·         What are the components that you are used from Essential JS2 in your application? 
·         If possible, please share us an issue reproducible sample to validate from our side. 
·         What is the exact EJ2 version that you are using in your project? 
 
   
Query2:” As an aside, the documentation does not say very much about spinner, basically just how to customize it.
How would one show/hide it manually, independent of any other SF components?”  
 
   
Since we didn’t expose the Spinner utility as public usage and it is used only with internal components of ours like grid, dropdown list. So we added documentation for customization internal components with spinner. You can use the spinner utility with the methods createSpinner to create spinner to the page. In this method, you can also set the target for the spinner and then you can show and hide this spinner by using showSpinner and hideSpinner methods. We have prepared a simple demo for this Spinner loading in a form and we will improve the documentation by exposing public methods.       
      
import { createSpinner, showSpinner, hideSpinner } from '@syncfusion/ej2-popups';     
     
    createSpinner({        
        target: document.getElementById('container');       
    });       
   
    showSpinner(document.getElementById('container'));       
   
   
hideSpinner(document.getElementById('container'));   
      
       
     
Please find the below Spinner getting started UG for more reference.   
   
   
Please check the shared information and let us know if you need any further assistance.   
      
Regards,
Arun P.  
 



MH Markus Hajek April 11, 2018 11:08 AM UTC

Thanks for your help, I will go and create a stripped down sample project to replicate the issue and come back to you,

Regards,
Markus


AP Arun Palaniyandi Syncfusion Team April 12, 2018 04:28 AM UTC

Hi Markus Hajek,    
    
Thanks for your update. 
 
We will wait to hear from you. 
 
Please let us know if you have any further queries. 
 
Arun P. 


Loader.
Up arrow icon