I have an app that makes use of the JSONStore in v5.0.6.
I migrated the project over to v6.0 and tried to use the Mobile Browser Simulator to test the JSONStore functionality.
I added WL.Client.getEnvironment() === 'preview'
to the if
condition in my collection JavaScript file.
However, when I try to get an instance of the collection, I get an error:
TypeError: WL.profileCollection is undefined
I think this maybe because the following API does not exist in version 6?
WL.namespace('WL.profileCollection');
What is the workaround for this problem?