diff --git a/src/store.ts b/src/store.ts index a9a75c0ba..30fc2eb85 100644 --- a/src/store.ts +++ b/src/store.ts @@ -48,6 +48,12 @@ export class StateStore> { let hasUpdatedValues = !selectedValues; + if (Array.isArray(selectedValues)) { + console.warn( + 'The API of our state store has changed. Instead of returning an array in the selector, please return a named object of properties.', + ); + } + for (const key in selectedValues) { if (selectedValues[key] === newlySelectedValues[key]) continue; hasUpdatedValues = true;