mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-30 18:47:51 +00:00 
			
		
		
		
	chore: Adjust debounce timeouts for conversation stats fetch (#12609)
This commit is contained in:
		| @@ -25,8 +25,8 @@ const fetchMetaData = async (commit, params) => { | ||||
|   } | ||||
| }; | ||||
|  | ||||
| const debouncedFetchMetaData = debounce(fetchMetaData, 500, false, 1000); | ||||
| const longDebouncedFetchMetaData = debounce(fetchMetaData, 500, false, 5000); | ||||
| const debouncedFetchMetaData = debounce(fetchMetaData, 500, false, 1500); | ||||
| const longDebouncedFetchMetaData = debounce(fetchMetaData, 1000, false, 8000); | ||||
| const superLongDebouncedFetchMetaData = debounce( | ||||
|   fetchMetaData, | ||||
|   1500, | ||||
| @@ -36,7 +36,7 @@ const superLongDebouncedFetchMetaData = debounce( | ||||
|  | ||||
| export const actions = { | ||||
|   get: async ({ commit, state: $state }, params) => { | ||||
|     if ($state.allCount > 10000) { | ||||
|     if ($state.allCount > 5000) { | ||||
|       superLongDebouncedFetchMetaData(commit, params); | ||||
|     } else if ($state.allCount > 100) { | ||||
|       longDebouncedFetchMetaData(commit, params); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Sivin Varghese
					Sivin Varghese