-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't clear device interests #139
Comments
You may need to wait for the clearDeviceInterests function to resolve before using getDeviceInterests - the operation within our system is not completed immediately. |
Also had this problem. Did remove them in a loop. This worked. .clearDeviceInterests has an issue i guess. |
Thanks @b6oh - I have been able to replicate this issue and can see the interests are not correctly removed when using clearDeviceInterests. I'll raise internally to get this reviewed. |
Close the issue, but one more solution is to use getDiviceInterests and removeDeviceInterest And example from the screenshot is incorrect because of clearDeviceInterests is async function |
I have a button that, when I click on it, it should unsubscribe my device of all interests

This is the code:
The promise is resolved and fulfilled but the list of interests is not cleared.
Any other functions from the documentations such as getDeviceInterests work, so it's not an issue with my pusher beams instance.
The text was updated successfully, but these errors were encountered: