Something has gone wrong with my project, preventing me from expanding data stores, data views on a Routed page, and the cookie manager in Data bindings.
The last line in the log is as follows;
Unhandled rejection TypeError: Cannot read properties of undefined (reading ‘datastore_cards’)
As a guess, this could be caused by the fact that you are using the datastore for a document that has a different ID to the one that you used to create the data store schema.
When you create the schema in a document with an ID of index, then this is the result
When using the schema on the about page, then the ID should be changed to index.
Related to @ben’s suggestion, I would check that the values which should appear exist in dmxAppConnect\config.js.
I’ve come across this issue a few times and I think it’s always been solved by editing config.js. If this resolves the problem, I don’t think it’s a bug. (Normally, it’s not necessary to edit config.js, but if you mix up IDs or change their names etc, things can get in a muddle.)
I checked dmxAppConnect\config.js, and it seems that I was missing the relevant data relating to the elements that wouldn’t load. I pulled a commit from GIT which did include the missing data, and now no more spinner of death
I think data is appended to this file in the order that properties are assigned in the various App Connect panels (Data Store, Cookie Manager etc). In your case, if you search for sessionStorage, you’ll see the relevant values (or not see them, if they’re missing).
Thanks for your help. Good news is, I created a copy of the files pages in a new project ran the session and API post and it worked. Now I just need the sessionStorage to work on the original files and I can then take a deep sign of relief.