You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to put together a toy example that sets some ID in Shared Storage, then uses the selectURL() function to choose a url based on that ID. This is pretty much the AB-test use-case here.
I can see that my (key, value) gets set into Shared Storage from the Chrome dev tools
From my server logs, the worklet JS code gets fetched
However, I get the following error in the console logs:
TypeError: Cannot read properties of undefined (reading 'get')
This happens inside my worklet's run(urls, data) function where I simply follow the example and perform await this.sharedStorage.get(myKey). Am I missing something here? Any help would be greatly appreciated. Thanks.
The text was updated successfully, but these errors were encountered:
I'm trying to put together a toy example that sets some ID in Shared Storage, then uses the
selectURL()
function to choose a url based on that ID. This is pretty much the AB-test use-case here.However, I get the following error in the console logs:
This happens inside my worklet's
run(urls, data)
function where I simply follow the example and performawait this.sharedStorage.get(myKey)
. Am I missing something here? Any help would be greatly appreciated. Thanks.The text was updated successfully, but these errors were encountered: