-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Labels
Description
Technically, includes should be a string.
store.loadAll('posts', { include: 'comments,author' });However, I've come across times in the real world when it's passed an array.
store.loadAll('posts', { include: ['comments', 'author'] });While this is incorrect, it's something we can correct. Currently, storefront will error with a hard to read stack trace from deep in library when it tries to use a string method on the array.
As a fix, if we come across an includes array we should correct it by running [].join(',')