Javascript – I am facing problem in sending array and fetching array through payload in redux toolkit
I am stuck on this problem trying to dispatch a state update to the store. This is my productSlice.js import { createSlice } from "@reduxjs/toolkit" const initialState = []; export const productSlice = createSlice({ name: 'product', initialState, reducers: { addpica:…