matrix-react-sdk
matrix-react-sdk copied to clipboard
Update widget tile if the url should change
Fixes https://github.com/element-hq/element-integration-manager/issues/116
The scalar token can arrive async after we've rendered a widget, which means we may need to change the URL of the app tile after this has happened. It felt reasonable to me to raise an event from the widget to the tile when this happens.
Checklist
- [ ] Tests written for new code (and old code if feasible).
- [ ] New or updated
public/exportedsymbols have accurate TSDoc documentation. - [ ] Linter and other CI checks pass.
- [ ] Sign-off given on the changes (see CONTRIBUTING.md).
Okay, then I think we probably need a way to raise the non-ready state so the tile isn't presented as ready until we have our URL.
Moving to draft while this remains in progress