mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-13 14:08:58 +08:00
resets data to avoid multiple re-rendering for parallel apis
This commit is contained in:
parent
3318ec8c38
commit
fcc248ddf6
@ -38,6 +38,11 @@ export interface servicesAction {
|
|||||||
|
|
||||||
export const getServiceMapItems = (globalTime: GlobalTime) => {
|
export const getServiceMapItems = (globalTime: GlobalTime) => {
|
||||||
return async (dispatch: Dispatch) => {
|
return async (dispatch: Dispatch) => {
|
||||||
|
dispatch<serviceMapItemAction>({
|
||||||
|
type: ActionTypes.getServiceMapItems,
|
||||||
|
payload: [],
|
||||||
|
});
|
||||||
|
|
||||||
let request_string =
|
let request_string =
|
||||||
"/serviceMapDependencies?start=" +
|
"/serviceMapDependencies?start=" +
|
||||||
globalTime.minTime +
|
globalTime.minTime +
|
||||||
@ -55,6 +60,11 @@ export const getServiceMapItems = (globalTime: GlobalTime) => {
|
|||||||
|
|
||||||
export const getDetailedServiceMapItems = (globalTime: GlobalTime) => {
|
export const getDetailedServiceMapItems = (globalTime: GlobalTime) => {
|
||||||
return async (dispatch: Dispatch) => {
|
return async (dispatch: Dispatch) => {
|
||||||
|
dispatch<servicesAction>({
|
||||||
|
type: ActionTypes.getServices,
|
||||||
|
payload: [],
|
||||||
|
});
|
||||||
|
|
||||||
let request_string =
|
let request_string =
|
||||||
"/services?start=" + globalTime.minTime + "&end=" + globalTime.maxTime;
|
"/services?start=" + globalTime.minTime + "&end=" + globalTime.maxTime;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user