Open docrinehart opened 5 years ago
hey @docrinehart, I'm taking a look at this one, I'll try to figure out what the problem is.
hey @docrinehart this is the expected functionality as far as I can see, when Griddle is initializing there's a reducer which is setting initial Immutable data object, you can take a look at src/utils/dataUtils.js
:
// Validate that the first item in our data has the custom Griddle key
if (hasCustomRowId && data.length > 0 && !data[0].hasOwnProperty(renderProperties.rowProperties.rowKey)) {
throw new Error(`Griddle: Property '${renderProperties.rowProperties.rowKey}' doesn't exist in row data. Please specify a rowKey that exists in <RowDefinition>`);
}
I also took a look at the 1.13.1 tag, and this story is also failing there. so I think you can close this issue.
cc @ryanlanciaux
Griddle main > with custom griddle key that doesn't exist