Skip to content

refreshGuestToken() runs indefinitely (and stacks!) #16

Closed
@gamma613

Description

@gamma613

In our react application, I've observed that superset embeds will continue running refreshGuestToken() after I've left the page that has the embed.

What's more, if I re-visit a page embedding a dashboard multiple times, it has a stacking effect - ie: if I visit the dashboard 6 times, it will now make 6 calls to refreshGuestToken().

I've tried calling dashboard.unmount() when my page unloads - which successfully removes the iframe, but it doesn't cause the setTimeout for refreshGuestToken() to be cancelled.

Not sure what other things could be floating around in memory as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions