?AlkantarClanX12

Your IP : 216.73.216.177


Current Path : /home/rankinh/lynkandco/wp-content/plugins/yith-woocommerce-wishlist/assets/js/src/app/
Upload File :
Current File : /home/rankinh/lynkandco/wp-content/plugins/yith-woocommerce-wishlist/assets/js/src/app/store.js

import { configureStore } from '@reduxjs/toolkit'
import productsDataReducer from '../features/products-data/products-data-reducer'
import wishlistsReducer from '../features/wishlists/wishlists-reducer'
import buttonsReducer from '../features/buttons/buttons-reducer'
import createInvalidateMiddleware from '../features/products-data/invalidate-middleware';

import { fetchWishlists } from '../features/wishlists/wishlists-actions';

let store = configureStore( {
	reducer: {
		productsData: productsDataReducer,
		wishlists: wishlistsReducer,
		buttons: buttonsReducer,
	},
	middleware: ( getDefaultMiddleware ) => getDefaultMiddleware().concat( createInvalidateMiddleware() )
} )

store.dispatch( fetchWishlists() );

export default store;