-
Notifications
You must be signed in to change notification settings - Fork 96
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
The onMessageRecipientsChangedHandler gets triggered multiple times in the react component #4303
Comments
Thanks for reporting this issue @RaveendraReshma . a couple of clarification questions.
what you are experiencing is to a degree by design. You are getting the autoLaunch event and the non-AutoLaunch event triggered. Your add-in should be able to handle this condition with state management , you can use sessionData to store state across the autoLaunch event and the task pane. Not sure if you have tried this. |
1) are you seeing the event been triggered even with no recipients added/removed manually? if this happens this is a bug in our side. it should not. Is this in the New Outlook? or in OWA? or both?
2) Do you have the same handlers for both the AutoLaunch Event and the one you added in the taskpane?
|
thanks @RaveendraReshma , further questions.
thanks! |
1) When you say "Multiple times" this is really 2 times, right? (because you have the auto-launch and non-Auto_launch subscriptions. is that correct? [this is by design, btw.. and with state management you should be able to deal with this.]
2) i am not sure exactly what you are trying to do here, but having this handler blank for the taskpane means that the event is irrelevant in the taskpane? or you need both events to do the same ?
|
@RaveendraReshma i am not able to repro 1) above. i wonder if you can share specific repro steps to check this or a manifest we can use to repro it? |
The above 1) issue got resolved by adding onReady within a useEffect Hook.
|
@RaveendraReshma Thanks for updating us that the issue is resolved. |
This issue has been automatically marked as stale because it is marked as needing author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your interest in Office Add-ins! |
This issue has been closed due to inactivity. Please comment if you still need assistance and we'll re-open the issue. |
- When user adds any recipients in To/Cc/Bcc sections and clicks on send, user will be blocked by a smart alert [Soft Block]
and once the user clicks on send button of smart alert the taskpane gets opened with the recipients.
- Second is with taskpane open if user enters any recipients in To/Cc/Bcc sections then that recipients will get painted on to
taskpane in real time. This scenario is breaking because we have added onMessageRecipientsChangedHandler in the react
component as well due to which the launch event gets triggered multiple times.
Your Environment
Expected behavior
Even in the component when user tries to add any recipients the onMessageRecipientsChangedHandler should get called only once.
Current behavior
Steps to reproduce
Context
Useful logs
Thank you for taking the time to report an issue. Our triage team will respond to you in less than 72 hours. Normally, response time is <10 hours Monday through Friday. We do not triage on weekends.
The text was updated successfully, but these errors were encountered: