title: Redux Toolkit and Axios
body: <p>I'm using Redux Toolkit to connect to an API with Axios.
  I'm using the following code:</p>
  
  <pre><code>const products = createSlice({
      name: "products",
      initialState: {
          products[]
      },
      reducers: {
          reducer2: state =&gt; {
              axios
                  .get('myurl')
                  .then(response =&gt; {
                      //console.log(response.data.products);
                      state.products.concat(response.data.products);
              })
  
          }
      }
  });
  </code></pre>
  
  <p>axios is connecting to the API because the commented line to print to the console is showing me the data. However, the  state.products.concat(response.data.products); is throwing the following error:</p>
  
  <p>TypeError: Cannot perform 'get' on a proxy that has been revoked</p>
  
  <p>Is there any way to fix this problem?</p>