Skip to content

When it's not possible to run code during page-load, it's not possible to use this library #1223

Closed
@rgprog

Description

@rgprog

From the documentation:

You can only call .load on page load, or reload (refresh). If you modify the .load method between page loads, it doesn’t have any effect until the page is reloaded.

I've been working on a Figma plugin. My plugin code runs in an iframe provided by the Figma web app. That iframe doesn't run any of my code until after its page has already loaded.

Segment hasn't received any tracking events which I generate in the Figma plugin. I think this is because my .load call is being queued until the next page refresh, and any .track calls are being queued until at least one .load call completes.

Is there a workaround for this problem?

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