microsoft / Viva-Connections-Extensibility-Beta

38 stars 6 forks source link

Quick view closes after state change in another ACE changes #11

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 open another ACEs Quick view.

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

    setInterval(() => {
        var now = new Date();

        this.setState({
        now: now
        });
    }, 1000);
}
manufz commented 3 years ago

duplicate of https://github.com/microsoft/Viva-Connections-Extensibility-Private-Beta/issues/12