Hello Janine,
Thank you for sharing your code and pointing out this issue.
Your scenario should work just fine when done through initialState. However, it appears that we have a bug that makes this impossible at the moment. We will work on resolving the issue and in the meantime, you can use onChanges instead. Here is a basic example on how this should look:
protected initData(config: { [key: string]: DataServiceConfig }) { const data = super.initData(config); const categoriesSort = [ { field: 'subcategory', dir: 'asc' } ]; data.dataServices.categories.onChanges.push(of(() => ({ sort: categoriesSort }))); return data; }
Let me know if the above helps you to resolve the issue.
Regards,
Garo
janine garrett