Closed jhholm closed 1 year ago
This absolutely seems like a bug to me. I was able to repro. This seems like a regression from v2 (you can see an example with this running with v2 here: https://stackblitz.com/edit/mgt-2720?file=index.html).
Would you be willing to submit a PR? Thanks!
I can try if I happen to have some spare time
Let us know, we'll be happy to provide help and reviews!
Hey guys, has this been fixed? I'm using "@microsoft/mgt-element": "^3.1.3", "@microsoft/mgt-react": "^3.1.3",
and I'm still facing this issue. If I pass fallback details, the person query does not go through.
with the fallbackDetails the person query does not go thorough. also i use SimpleProvider for authentication. "@microsoft/mgt-element": "^3.1.3", "@microsoft/mgt-react": "^3.1.3",
i had to downgrade the version to 2.9.0 and it works - the issue still remains in 3.1.3
Describe the bug If mgt-person has fallback-details set, person-query doesn't seem to work. Tested with 3.0.0 and 3.1.2 within SharePoint Framework with React, but bug can also be reproduced in https://mgt.dev.
To Reproduce Steps to reproduce the behavior in mgt.dev
Expected behavior You should not see the fallback-details when the person-query returns a valid person
Screenshots
Environment (please complete the following information):
Additional context / bug Additionally I think updating the person-query doesn't work either. E.g if person-query comes from React state, and that state is updated, the React component rerenders, but mgt-person still shows the old person.