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

Several hyperform instances do not share a global registry #91

Open
Boldewyn opened this issue Sep 9, 2019 · 0 comments
Open

Several hyperform instances do not share a global registry #91

Boldewyn opened this issue Sep 9, 2019 · 0 comments

Comments

@Boldewyn
Copy link
Contributor

Boldewyn commented Sep 9, 2019

A freak bug, where hyperform was embedded in a module, and the JS file containing it was loaded again and again. Everytime hyperform(window) runs in the module, Hyperform cannot detect, that another Hyperform instance already ran on window, since the registries of both instances are disconnected.

Proof of Concept:

import hyperform from 'hyperform';
hyperform(window);

Load this file more than once. Visible result: Error messages are duplicated.

Possible fix: Try to make several instances of Hyperform aware of one another. What to do, if config options differ?

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