-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[React][aws-amplify-react]: Authenticator component does pass pass the 'signOut' event to child components #2419
Comments
@lambda0xff - Are you saying that the child components for should all receive the event as props? I hesitate to do this because it could introduce unexpected behavior for existing apps using this package. Have you tried having the child components listening for the Hub signout event? |
@haverchuck hi, IMHO if With regards the Hub event bus, the answer is yes: I've tried it and it works as expected. |
Hi @lambda0xff - I see your point. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@lambda0xff Is this still a valid use case for you? Seems like Hub would give you this and I do see that you called out it works as expected. Please let us know. |
👍 |
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Describe the bug
When wrapping components inside a custom
<Authenticator>
, auth events are correctly propagated to child components through props, except for 'signOut'To Reproduce
Steps to reproduce the behavior:
The AlwaysOn component does not correctly display the 'signOut' event
Expected behavior
A clear and concise description of what you expected to happen.
'signOut' event should be passed to child components
The text was updated successfully, but these errors were encountered: