Closed tmokmss closed 1 week ago
thank you for raising this issue! i've marked as a bug for the team.
we will look into it and report back with any progress on a fix.
@tmokmss - we published a bug fix for this issue to aws-amplify@unstable
. It will be included in the next library release next week.
The bug fix has been released with aws-amplify@6.8.1
.
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
GraphQL API
Amplify Version
v6
Amplify Categories
api
Backend
Other
Environment information
Describe the bug
events.closeAll
does not seem workiing as expected. Even after calling the function, all the existing subscription remain active and new events are subscribed.Expected behavior
After calling
event.closeAll
, all the existing channels are closed and no new events are subscribed.Reproduction steps
Bascally I followed this tutorial: https://docs.aws.amazon.com/appsync/latest/eventapi/build-amplify-app.html#deploy-react-vite-app
But when I changed a line as below, channels will not be closed at all.
Code Snippet
Log output
aws-exports.js
No response
Manual configuration
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response