microsoft / Viva-Connections-Extensibility-Beta

38 stars 6 forks source link

[Teams iOS app] Quick view closes after state change of another ACE #12

Closed manufz closed 3 years ago

manufz commented 3 years ago

Versions

[ 1.13.0-beta.5 ] SPFx Generator version

Expected or Desired Behavior

Quick view should not be closed when state of another ACE is updated.

Observed Behavior

We have developed an ACE that calls setState in the onInit function every second. This leads to the problem that if another ACEs Quick view is opened it's closed after one second.

Steps to Reproduce

Create an ACE that sets the state without user interaction, e.g. like below and all other ACEs Quick views will close after one second.

public onInit(): Promise<void> {
    this.state = {
        now: new Date()
    };

    setInterval(() => {
        this.setState({
            now: new Date()
        });
    }, 1000);
}
vinitb-ms commented 3 years ago

Fix for this will be available when new build rolls out next week.

Zaidos9 commented 3 years ago

@manufz A new Beta2 version of the mobile app has been released. Let us know if you are still seeing the issue.

manufz commented 3 years ago

@Zaidos9 no looks good now, thanks.