Instead of calling get_data function several times, it is instead encapsulated in singleton class which is only called once to make the code more efficient
Proposed Changes
getData class in get_data which will encapsulate get_data function inside of it
Instead of having several calls to get_data, the instance of the class will be called once and reused several times over instead of calling a new instantiation of it every time
Related Issue:
Instead of calling get_data function several times, it is instead encapsulated in singleton class which is only called once to make the code more efficient
Proposed Changes
getData class in get_data which will encapsulate get_data function inside of it
Instead of having several calls to get_data, the instance of the class will be called once and reused several times over instead of calling a new instantiation of it every time
Checklist
Screenshots