# Upgrade guide for Grid v5.2.0

## The behaviour of the `store.data` getter will change in 6.0

Currently, it returns the **initial** raw dataset. For example:

```javascript
const store = new Store({
    data : [
        { id : 1, name : 'Foo' },
        { id : 2, name : 'Bar' }
    ]
});

store.first.name = 'Baz';
store.last.remove();

// store.data returns the initial data
console.log(store.data); // [{ id : 1, name : 'Foo' }, { id : 2, name : 'Bar' }]
```

In 6.0 it will be changed to have the more expected behaviour of returning the data objects for the **current** state 
instead. The example above would instead log:

```javascript
// [{ id : 1, name : 'Baz' }]
```


<p class="last-modified">Last modified on 2023-10-26 8:19:11</p>