import { localStorageService } from '../../../../utils/storage' ; import { HistoryQueriesXStoreModule } from '../types' ; /**
 * Default implementation for the  HistoryQueriesActions . setHistoryQueries .
 *
 *  param context - The  https of the actions,
 * provided by Vuex.
 *  param historyQueries public export const setHistoryQueries = ( { commit , state , getters } , historyQueries ) => { if ( historyQueries . length > state . config . maxItemsToStore ) { historyQueries = historyQueries . slice ( 0 , state . config . maxItemsToStore ) ; } commit ( 'setHistoryQueries' , historyQueries ) ; localStorageService . setItem ( getters . storageKey , historyQueries ) ; } ;