Several hyperform instances do not share a global registry
Boldewyn opened this issue · comments
Manuel Strehl commented
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?