Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle multiple pending spawns to/from the same app #58

Open
wejendorp opened this issue Jan 22, 2020 · 0 comments
Open

Handle multiple pending spawns to/from the same app #58

wejendorp opened this issue Jan 22, 2020 · 0 comments

Comments

@wejendorp
Copy link
Contributor

Describe the bug
Calling app.spawn() multiple times creates multiple requests and iframes via the hub.

To Reproduce
Code or link to code to reproduce the behavior:

const app = ts.io();
app.spawn('Tradeshift.MyApp');
app.spawn('Tradeshift.MyApp');
app.spawn('Tradeshift.MyApp');

3 separate iframes w/ MyApp will be created. (UX issue)

Callback behavior is unclear. (integrity issue)

Expected behavior
A clear and concise description of what you expected to happen.

Subsequent spawns should error or (if possible) invalidate the existing request.
Similarly to xhr cancellation.

Additional context
N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant