UNPKG

582 BMarkdownView Raw
1
2## What's a `stateKey`?
3
4A `stateKey` is a unique ID associated with each grid instantiation, and is a required parameter. Because all grid data is stored in a `reducer`, we need a unique key to access each grid's subsection of data in these objects. If a grid is instantiated without a `stateKey`, it will will throw a user error in the console.
5
6You can think of a `stateKey` like the grid's name, as it will be used to create state, but also as the unique token from which you can grab state from the store. In short, please provide a unique `stateKey` to each grid you create.