-
Notifications
You must be signed in to change notification settings - Fork 306
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
[BUG] mgt-person does not update the default template when details change #165
Comments
Continuing discussion with @miqh from #177
The context will always be a simple object without any functions or complex items because the data is coming as json from the Microsoft Graph. A deep equal function implemented locally is enough. The utils module is a good place for an implementation
Agreed 100%. APIs shouldn't change too much at this point and we should be testing for regressions. Fully open to suggestions and approaches. |
@nmetulev, after I implemented a fix (#186) to address this issue, I looked into possible avenues with getting some tests around all the web components in this project. I tried to get something going locally but to no avail. Here are some points that may be of use:
|
Thanks for looking into testing @miqh . Do you think we should switch to Karma based on your findings? Jest is left over from earlier investigations we did with Stencil JS and I think we always hoped to get it running with lit-element. But we are not tied to it and it sounds like the Karma is recommended |
Describe the bug
When using a template inside of an mgt-person component, I expect the template to reflect changes in the data. For example, when doing a person-query, I expect the template to update when the data is fetched from the graph. This does not always work, specifically in the example below
To Reproduce
Expected behavior
The person details should update the template no mater where it is being used
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: