Question: I am new with JMeter. I am using apache jmeter 5.2 with Java 8. I want to send cookie data in a field name "Cookie" in the request header of a post request at the time of logging in a user to a website. The request header will like the following picture :

[![Cookie data](https://i.stack.imgur.com/jvVO4.jpg)](https://i.stack.imgur.com/jvVO4.jpg)

First of all, I am sending a get request to the server and holding cookie data using regular expression extractor and using the value in request header as a parameter named "Cookie". But unfortunately JMeter doesn't add that parameter with the request header. I have also used HTTP Cookie Manager. But I am getting cookie data in **request body**, but not in **request headers**.

I have already seen the following posts.

[How to generate a cookie and send it in a request in Jmeter](https://stackoverflow.com/questions/40010164/how-to-generate-a-cookie-and-send-it-in-a-request-in-jmeter)

Answer: 
> 
> "newState" is a immutable object
> 
> 
> 

If you don't do that on your own, it's ordinary object/array/etc so it is not immutable.

> 
> why render is not getting called
> 
> 
> 

React-redux tries its best and actually wraps your component into [`PureComponent`](https://reactjs.org/docs/react-api.html#reactpurecomponent). It does that to make all your `connect()`-ed components *will not* re-render on *any* action called but only once store has been updated in *relevant* places. 

To realize if relevant data has been changed or not, `PureComponent` compares shallowly like `oldDataProp !== newDataProp`. Once you mutate objects/arrays that check will fail so component will not re-render.
You need to use other alternatives because `Object.assign()` copies property values. If the source value is a reference to an object, it only copies that reference value.

You should use a Deep clone.

```
let newState= JSON.parse(JSON.stringify(state));

```